Index: lib/whitelisting.js |
=================================================================== |
--- a/lib/whitelisting.js |
+++ b/lib/whitelisting.js |
@@ -128,17 +128,17 @@ |
FilterNotifier.emit( |
"page.WhitelistingStateRevalidate", |
page, checkWhitelisted(page) |
); |
} |
FilterNotifier.on("filter.behaviorChanged", () => |
{ |
- chrome.tabs.query({}, tabs => |
+ browser.tabs.query({}, tabs => |
{ |
for (let tab of tabs) |
revalidateWhitelistingState(new ext.Page(tab)); |
}); |
}); |
ext.pages.onLoading.addListener(revalidateWhitelistingState); |
@@ -216,19 +216,19 @@ |
{ |
recordKey(key, page, url); |
break; |
} |
} |
} |
} |
-if (typeof chrome == "object") |
+if (typeof browser == "object") |
{ |
- chrome.webRequest.onHeadersReceived.addListener( |
+ browser.webRequest.onHeadersReceived.addListener( |
onHeadersReceived, |
{ |
urls: ["http://*/*", "https://*/*"], |
types: ["main_frame", "sub_frame"] |
}, |
["responseHeaders"] |
); |
} |