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 26b6374 commit e898302Copy full SHA for e898302
src/core/util/env.js
@@ -7,10 +7,7 @@ import { noop } from 'shared/util'
7
export const hasProto = '__proto__' in {}
8
9
// Browser environment sniffing
10
-export const inBrowser =
11
- typeof window !== 'undefined' &&
12
- Object.prototype.toString.call(window) !== '[object Object]'
13
-
+export const inBrowser = typeof window !== 'undefined'
14
export const UA = inBrowser && window.navigator.userAgent.toLowerCase()
15
export const isIE = UA && /msie|trident/.test(UA)
16
export const isIE9 = UA && UA.indexOf('msie 9.0') > 0
0 commit comments