Chrome 49 fixup for updateIcon

This commit is contained in:
tophf 2017-04-17 19:17:28 +03:00
parent dca6aecd20
commit 01d59192a3

View File

@ -28,6 +28,11 @@ let BG = chrome.extension.getBackgroundPage();
if (!BG || BG != window) {
document.documentElement.classList.toggle('firefox', FIREFOX);
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
if (navigator.userAgent.includes('Chrome/49.')) {
getActiveTab().then(BG.updateIcon);
}
}
function notifyAllTabs(msg) {