We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab889c3 commit 85d906eCopy full SHA for 85d906e
1 file changed
client/index.js
@@ -47,7 +47,11 @@ function log(level, msg) {
47
48
// Send messages to the outside, so plugins can consume it.
49
function sendMsg(type, data) {
50
- if(typeof self !== "undefined" && self.window) {
+ if(
51
+ typeof self !== "undefined" &&
52
+ (typeof WorkerGlobalScope === "undefined" ||
53
+ !(self instanceof self.WorkerGlobalScope))
54
+ ) {
55
self.postMessage({
56
type: "webpack" + type,
57
data: data
0 commit comments