Skip to content

Commit

Permalink
fix: render edge79+ as V8 (compat-table#1608)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Apr 22, 2020
1 parent df1466b commit 20a1512
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions master.js
Expand Up @@ -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 */
Expand Down

0 comments on commit 20a1512

Please sign in to comment.