mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-16 01:41:15 +08:00
5 lines
235 B
JavaScript
5 lines
235 B
JavaScript
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;
|