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 6f04d94 commit 6110319Copy full SHA for 6110319
client-src/index.js
@@ -87,13 +87,15 @@ const status = {
87
currentHash: __webpack_hash__,
88
hasRuntimeError: false,
89
};
90
-window.addEventListener("error", () => {
91
- status.hasRuntimeError = true;
92
-});
+if (typeof window !== "undefined") {
+ window.addEventListener("error", () => {
+ status.hasRuntimeError = true;
93
+ });
94
-window.addEventListener("unhandledrejection", () => {
95
96
+ window.addEventListener("unhandledrejection", () => {
97
98
+}
99
/**
100
* @returns {string} current script source
101
*/
0 commit comments