Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
1cg committed Mar 2, 2023
2 parents 4024d7d + 1ea39e8 commit 394caf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_hyperscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -2331,7 +2331,7 @@

/** @type string | null */
// @ts-ignore
hyperscriptUrl = "document" in globalScope ? document.currentScript.src : null;
hyperscriptUrl = "document" in globalScope && document.currentScript ? document.currentScript.src : null;
}

class Context {
Expand Down

0 comments on commit 394caf5

Please sign in to comment.