Index: lib/whitelisting.js |
=================================================================== |
--- a/lib/whitelisting.js |
+++ b/lib/whitelisting.js |
@@ -60,7 +60,7 @@ |
return null; |
} |
-let verifyKey = function(key, signature, url, docDomain) |
+let verifyKey = function(key, signature, url) |
{ |
url = new URL(url); |
let params = [ |
@@ -88,13 +88,13 @@ |
let processKey = exports.processKey = function(token, page, frame) |
{ |
let url = stripFragmentFromURL(frame.url); |
- let docDomain = extractHostFromURL((frame.parent || frame).url); |
if (token.indexOf("_") < 0) |
return; |
let [key, signature] = token.split("_", 2); |
key = key.replace(/=/g, ""); |
- if (verifyKey(key, signature, url, docDomain)) |
+ |
+ if (verifyKey(key, signature, url)) |
recordKey(page, url, key); |
}; |