FF: don't style checkboxes in FF < 54, not 57

See #271
This commit is contained in:
tophf 2017-12-03 07:59:22 +03:00
parent d9e3d15098
commit 39a521fb80

View File

@ -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