fixup 860443b9: BG can point to itself

This commit is contained in:
tophf 2017-08-04 12:42:34 +03:00
parent af41d646dd
commit 30c19cf64e

View File

@ -46,7 +46,7 @@ URLS.supported = new RegExp(
); );
let BG = chrome.extension.getBackgroundPage(); let BG = chrome.extension.getBackgroundPage();
if (BG && !BG.getStyles) { if (BG && !BG.getStyles && BG !== window) {
// own page like editor/manage is being loaded on browser startup // own page like editor/manage is being loaded on browser startup
// before the background page has been fully initialized; // before the background page has been fully initialized;
// it'll be resolved in onBackgroundReady() instead // it'll be resolved in onBackgroundReady() instead