From 8f053545db6930e5873d5515fad1424a883a8d50 Mon Sep 17 00:00:00 2001 From: Michael Laktionov Date: Mon, 5 Oct 2020 11:03:02 +0300 Subject: [PATCH] build update --- main.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/main.js b/main.js index 31358ac..f7e36d1 100644 --- a/main.js +++ b/main.js @@ -366,11 +366,7 @@ var isMobileAndTabletType = function isMobileAndTabletType() { }; var isEdgeChromiumType = function isEdgeChromiumType() { - if (os.name === OS_TYPES.WINDOWS && os.version === '10') { - return typeof ua === 'string' && ua.indexOf('Edg/') !== -1; - } - - return false; + return typeof ua === 'string' && ua.indexOf('Edg/') !== -1; }; var isSmartTVType = function isSmartTVType() { @@ -552,7 +548,7 @@ var isIPhone13 = getIphone13(); var isIPod13 = getIPod13(); var isElectron = isElectronType(); var isEdgeChromium = isEdgeChromiumType(); -var isLegacyEdge = isEdgeType(); +var isLegacyEdge = isEdgeType() && !isEdgeChromiumType(); var isWindows = isWindowsType(); var isMacOs = isMacOsType(); var isMIUI = isMIUIType();