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.
2 parents 3c7aa53 + f01950c commit 30b595cCopy full SHA for 30b595c
src/custom-extend.ts
@@ -3,7 +3,7 @@
3
// Allows 'inherited' hook
4
5
let globalObj;
6
-if (typeof window === 'undefined') {
+if (typeof window === 'undefined' || window != (global as any)) {
7
globalObj = global;
8
} else {
9
globalObj = window;
src/util/extend.ts
@@ -2,7 +2,7 @@
2
// use for non-typescript extends
+if (typeof window === 'undefined' || window !== (global as any)) {
0 commit comments