Skip to content

Commit 11e7e00

Browse files
authored
refactor(shell-electron): optimized repeat judgment (#1980)
1 parent a9e4fa8 commit 11e7e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shell-electron/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if (isBrowser) {
66
require('./build-node/hook.js')
77
}
88

9-
const target = typeof window !== 'undefined'
9+
const target = isBrowser
1010
? window
1111
: typeof global !== 'undefined'
1212
? global

0 commit comments

Comments
 (0)