diff --git a/js/messaging.js b/js/messaging.js index 00b84272..c27bef6a 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -17,6 +17,7 @@ if (!CHROME && !chrome.browserAction.openPopup) { FIREFOX = 50; browser.runtime.getBrowserInfo().then(info => { FIREFOX = parseFloat(info.version); + document.documentElement.classList.toggle('moz-appearance-bug', FIREFOX && FIREFOX < 54); }); } @@ -61,7 +62,7 @@ if (BG && !BG.getStyles && BG !== window) { } if (!BG || BG !== window) { document.documentElement.classList.toggle('firefox', FIREFOX); - document.documentElement.classList.toggle('moz-appearance-bug', FIREFOX && FIREFOX < 57); + document.documentElement.classList.toggle('moz-appearance-bug', FIREFOX && FIREFOX < 54); document.documentElement.classList.toggle('opera', OPERA); // TODO: remove once our manifest's minimum_chrome_version is 50+ // Chrome 49 doesn't report own extension pages in webNavigation apparently