From 02bd5b6f0618b97b194d81dadb6f0e4adba44d39 Mon Sep 17 00:00:00 2001 From: xnerhu Date: Sun, 5 Nov 2023 14:33:41 +0100 Subject: [PATCH] revert back edge browserk ind --- src/types.ts | 1 - src/utils/browser.ts | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) 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