diff --git a/src/types.ts b/src/types.ts index c1bdecbc..28e767de 100644 --- a/src/types.ts +++ b/src/types.ts @@ -170,5 +170,4 @@ export const enum BrowserKind { Safari = 'safari', IE = 'internet_explorer', WeChat = 'wechat', - Edge = 'edge', } diff --git a/src/utils/browser.ts b/src/utils/browser.ts index 375358b5..fc78635f 100644 --- a/src/utils/browser.ts +++ b/src/utils/browser.ts @@ -52,9 +52,7 @@ export function getBrowserEngineKind(): BrowserEngineKind { export function getBrowserKind(): BrowserKind { const userAgent = navigator.userAgent?.toLowerCase() - if (strIncludes(userAgent, 'edg/')) { - return BrowserKind.Edge - } else if (strIncludes(userAgent, 'safari')) { + if (strIncludes(userAgent, 'safari')) { return BrowserKind.Safari } else if (strIncludes(userAgent, 'trident') || strIncludes(userAgent, 'msie')) { return BrowserKind.IE