We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d96d95d commit 1dad8cdCopy full SHA for 1dad8cd
1 file changed
packages/haul-core/assets/debuggerWorker.js
@@ -120,7 +120,10 @@ class DebuggerWorker {
120
121
let error;
122
const scriptURL = new URL(message.url);
123
- scriptURL.host = self.location.host;
+ if (typeof self !== 'undefined' && self.location) {
124
+ scriptURL.host = self.location.host;
125
+ }
126
+
127
try {
128
importScripts(scriptURL.href);
129
} catch (e) {
0 commit comments