Index: background.js |
=================================================================== |
--- a/background.js |
+++ b/background.js |
@@ -532,18 +532,17 @@ chrome.extension.onRequest.addListener(f |
var tabId = -1; |
var frameId = -1; |
if (sender.tab) |
{ |
tabId = sender.tab.id; |
frameId = getFrameId(tabId, request.documentUrl); |
} |
- var enabled = !isFrameWhitelisted(tabId, frameId, "DOCUMENT"); |
- if (!enabled) |
+ if (isFrameWhitelisted(tabId, frameId, "DOCUMENT")) |
{ |
sendResponse(false); |
break; |
} |
var requestHost = extractHostFromURL(request.url); |
var documentHost = extractHostFromURL(request.documentUrl); |
var thirdParty = isThirdParty(requestHost, documentHost); |