From e4e8f04c95e752a630516a052c5b3675767a59fd Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 7 Dec 2017 06:54:51 +0300 Subject: [PATCH] code cosmeticsiv --- js/messaging.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/messaging.js b/js/messaging.js index bf0a4aec..8351a4c0 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -63,11 +63,9 @@ if (BG && !BG.getStyles && BG !== window) { if (!BG || BG !== window) { if (FIREFOX) { document.documentElement.classList.add('firefox'); - } - if (OPERA) { + } else if (OPERA) { document.documentElement.classList.add('opera'); - } - if (chrome.app && navigator.userAgent.includes('Vivaldi')) { + } else if (chrome.app && navigator.userAgent.includes('Vivaldi')) { document.documentElement.classList.add('vivaldi'); } // TODO: remove once our manifest's minimum_chrome_version is 50+