|
@@ -7,10 +7,7 @@ import { noop } from 'shared/util'
|
|
|
export const hasProto = '__proto__' in {}
|
|
export const hasProto = '__proto__' in {}
|
|
|
|
|
|
|
|
// Browser environment sniffing
|
|
// Browser environment sniffing
|
|
|
-export const inBrowser =
|
|
|
|
|
- typeof window !== 'undefined' &&
|
|
|
|
|
- Object.prototype.toString.call(window) !== '[object Object]'
|
|
|
|
|
-
|
|
|
|
|
|
|
+export const inBrowser = typeof window !== 'undefined'
|
|
|
export const UA = inBrowser && window.navigator.userAgent.toLowerCase()
|
|
export const UA = inBrowser && window.navigator.userAgent.toLowerCase()
|
|
|
export const isIE = UA && /msie|trident/.test(UA)
|
|
export const isIE = UA && /msie|trident/.test(UA)
|
|
|
export const isIE9 = UA && UA.indexOf('msie 9.0') > 0
|
|
export const isIE9 = UA && UA.indexOf('msie 9.0') > 0
|