From 20a151274a2584175a9841e19bbd3098315c8868 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Wed, 22 Apr 2020 00:21:17 -0400 Subject: [PATCH] fix: render edge79+ as V8 (#1608) --- master.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/master.js b/master.js index d754c8122..15e13ce54 100644 --- a/master.js +++ b/master.js @@ -326,27 +326,27 @@ $(function() { // browser engine color stripes function getBrowserColour(name) { /* Chakra */ - if (/^(ie|edge)/.exec(name)) { + if (/^(ie|edge1[2-8]$)/.test(name)) { return "hsla(217, 85%, 54%, .5)"; } /* SpiderMonkey */ - if (/^(firefox|rhino)/.exec(name)) { + if (/^(firefox|rhino)/.test(name)) { return "hsla(35, 100%, 50%, .5)"; } /* JavaScriptCore */ - if (/^(webkit|safari|jxa|phantom|ios|android4_0)/.exec(name)) { + if (/^(webkit|safari|jxa|phantom|ios|android4_0)/.test(name)) { return "hsla(220, 25%, 70%, .5)"; } /* Carakan */ - if (/^opera\d|opera_mobile1[120]/.exec(name)) { + if (/^opera\d|opera_mobile1[120]/.test(name)) { return "hsla(358, 86%, 43%, .5)"; } /* V8 */ - if (/^(chrome|node|iojs|android4[1-9]|android[5-9]|samsung|opera_mobile)/.exec(name)) { + if (/^(chrome|node|iojs|android4[1-9]|android[5-9]|samsung|opera_mobile|edge)/.test(name)) { return "hsla(79, 100%, 37%, .5)"; } /* KJS */ - if (/^konq/.exec(name)) { + if (/^konq/.test(name)) { return "hsla(200, 100%, 74%, .5)"; } /* BESEN */