parent
d9e3d15098
commit
39a521fb80
|
@ -17,6 +17,7 @@ if (!CHROME && !chrome.browserAction.openPopup) {
|
||||||
FIREFOX = 50;
|
FIREFOX = 50;
|
||||||
browser.runtime.getBrowserInfo().then(info => {
|
browser.runtime.getBrowserInfo().then(info => {
|
||||||
FIREFOX = parseFloat(info.version);
|
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) {
|
if (!BG || BG !== window) {
|
||||||
document.documentElement.classList.toggle('firefox', FIREFOX);
|
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);
|
document.documentElement.classList.toggle('opera', OPERA);
|
||||||
// TODO: remove once our manifest's minimum_chrome_version is 50+
|
// TODO: remove once our manifest's minimum_chrome_version is 50+
|
||||||
// Chrome 49 doesn't report own extension pages in webNavigation apparently
|
// Chrome 49 doesn't report own extension pages in webNavigation apparently
|
||||||
|
|
Loading…
Reference in New Issue
Block a user