2019-01-12 11:33:27 +08:00
|
|
|
export const inBrowser = typeof window !== 'undefined';
|
|
|
|
export const UA = inBrowser && window.navigator.userAgent.toLowerCase();
|
|
|
|
export const isIE = UA && /msie|trident/.test(UA);
|
|
|
|
export const isIE9 = UA && UA.indexOf('msie 9.0') > 0;
|