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 197f295 commit 5dfab58Copy full SHA for 5dfab58
src/runtime/getGlobalThis.js
@@ -12,8 +12,10 @@ module.exports = (function () {
12
globalObj = this || new Function("return this")();
13
} catch {
14
// This works if the window reference is available
15
- if (typeof globalThis.window === "object") {
16
- return globalThis;
+ // eslint-disable-next-line unicorn/prefer-global-this
+ if (typeof window === "object") {
17
+ // eslint-disable-next-line unicorn/prefer-global-this, no-undef
18
+ return window;
19
}
20
21
// This works if the self reference is available
0 commit comments