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 f996bd4 commit ccc8163Copy full SHA for ccc8163
client/index.js
@@ -47,7 +47,7 @@ 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") {
+ if(typeof self !== "undefined" && self.window) {
51
self.postMessage({
52
type: "webpack" + type,
53
data: data
@@ -162,7 +162,7 @@ function reloadApp() {
162
log("info", "[WDS] App hot update...");
163
var hotEmitter = require("webpack/hot/emitter");
164
hotEmitter.emit("webpackHotUpdate", currentHash);
165
166
// broadcast update to window
167
self.postMessage("webpackHotUpdate" + currentHash, "*");
168
}
0 commit comments