Index: lib/whitelisting.js |
=================================================================== |
--- a/lib/whitelisting.js |
+++ b/lib/whitelisting.js |
@@ -26,7 +26,7 @@ |
const {stringifyURL, getDecodedHostname, |
extractHostFromFrame, isThirdParty} = require("url"); |
const {port} = require("messaging"); |
-const devtools = require("devtools"); |
+const {logWhitelistedDocument} = require("devtools"); |
const {verifySignature} = require("rsa"); |
let sitekeys = new ext.PageMap(); |
@@ -43,12 +43,8 @@ |
urlString, typeMask, docDomain, thirdParty, sitekey |
); |
- if (filter && devtools) |
- { |
- devtools.logWhitelistedDocument( |
- page, urlString, typeMask, docDomain, filter |
- ); |
- } |
+ if (filter) |
+ logWhitelistedDocument(page.id, urlString, typeMask, docDomain, filter); |
return filter; |
} |