From d937e639f205baee443e4dfad1a6005ef3ba050a Mon Sep 17 00:00:00 2001 From: Razvan Stoenescu Date: Fri, 29 Mar 2024 10:48:42 +0200 Subject: [PATCH] fix(ui): Platform on Edge should be normalized to 'edge' #17039 --- ui/src/plugins/platform/Platform.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ui/src/plugins/platform/Platform.js b/ui/src/plugins/platform/Platform.js index 36a2959fbef..697f54ad63b 100644 --- a/ui/src/plugins/platform/Platform.js +++ b/ui/src/plugins/platform/Platform.js @@ -113,7 +113,7 @@ function getPlatform (UA) { delete browser[ 'windows phone' ] } - if (browser.edga || browser.edgios) { + if (browser.edga || browser.edgios || browser.edg) { browser.edge = true matched.browser = 'edge' } @@ -154,14 +154,8 @@ function getPlatform (UA) { browser.webkit = true } - // TODO: (Qv3) rename the terms 'edge' to 'edge legacy' (or remove it) then 'edge chromium' to 'edge' to match with the known up-to-date terms - // Microsoft Edge is the new Chromium-based browser. Microsoft Edge Legacy is the old EdgeHTML-based browser (EOL: March 9, 2021). - if (browser.edg) { - matched.browser = 'edgechromium' - browser.edgeChromium = true - } // Opera 15+ are identified as opr - else if (browser.opr) { + if (browser.opr) { matched.browser = 'opera' browser.opera = true }