Fix: dom.js is not a content script anymore

This commit is contained in:
eight 2017-11-09 08:15:36 +08:00
parent 7266c38d56
commit 2b614bdee2

View File

@ -47,7 +47,7 @@ onDOMready().then(() => {
} }
}); });
if (navigator.userAgent.includes('Firefox') && chrome.windows) { if (navigator.userAgent.includes('Firefox')) {
// die if unable to access BG directly // die if unable to access BG directly
chrome.windows.getCurrent(wnd => { chrome.windows.getCurrent(wnd => {
if (!BG && wnd.incognito) { if (!BG && wnd.incognito) {