Skip to content

Commit

Permalink
avoid document reference error in some versions of Node
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolodavis committed Mar 24, 2020
1 parent 30d01d2 commit ca3cc0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,10 @@ class _ClientImpl {
if (
debugImpl !== null &&
this.debug !== false &&
this._debugPanel == null
this._debugPanel == null &&
typeof document !== 'undefined'
) {
let target = document && document.body;
let target = document.body;
if (this.debug && this.debug.target !== undefined) {
target = this.debug.target;
}
Expand Down

0 comments on commit ca3cc0f

Please sign in to comment.