Index: lib/whitelisting.js |
diff --git a/lib/whitelisting.js b/lib/whitelisting.js |
index 4307511d17eb796d451f9ac4d1a7cccb3fce286e..528bcaccd5b32f9059eddf575d3f900625e62c79 100644 |
--- a/lib/whitelisting.js |
+++ b/lib/whitelisting.js |
@@ -26,7 +26,7 @@ const {FilterStorage} = require("filterStorage"); |
const {stringifyURL, getDecodedHostname, |
extractHostFromFrame, isThirdParty} = require("url"); |
const {port} = require("messaging"); |
-const devtools = require("devtools"); |
+const {logWhitelistedDocument} = require("hitLogger"); |
const {verifySignature} = require("rsa"); |
let sitekeys = new ext.PageMap(); |
@@ -43,13 +43,11 @@ function match(page, url, typeMask, docDomain, sitekey) |
urlString, typeMask, docDomain, thirdParty, sitekey |
); |
- if (filter && devtools) |
+ if (filter) |
{ |
- devtools.logWhitelistedDocument( |
- page, urlString, typeMask, docDomain, filter |
- ); |
+ logWhitelistedDocument(page ? page.id : -1, urlString, typeMask, docDomain, |
+ filter); |
} |
- |
return filter; |
} |