We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9e4fa8 commit 11e7e00Copy full SHA for 11e7e00
packages/shell-electron/index.js
@@ -6,7 +6,7 @@ if (isBrowser) {
6
require('./build-node/hook.js')
7
}
8
9
-const target = typeof window !== 'undefined'
+const target = isBrowser
10
? window
11
: typeof global !== 'undefined'
12
? global
0 commit comments