add isIE in instance

This commit is contained in:
Harvey committed 2021-12-10 10:18:38 +08:00
1 parent dbe99aa205
commit 631bcfda58
4 files changed
+14 -2

No files matched your search

@@ -2,3 +2,4 @@ export const userAgent = typeof window !== 'undefined' ? window.navigator.userAg
export const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent);
export const isSafari = /^((?!chrome|android).)*safari/i.test(userAgent);
export const isWechat = /MicroMessenger/i.test(userAgent);
export const isIE = /MSIE|Trident/i.test(userAgent);