Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: include.preload.js

Issue 5644946291818496: Issue 433 - Made adjustments for $sitekey-related changes to the Matcher API (Closed)
Patch Set: Created Sept. 10, 2014, 3:38 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « background.js ('k') | lib/whitelisting.js » ('j') | lib/whitelisting.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include.preload.js
===================================================================
--- a/include.preload.js
+++ b/include.preload.js
@@ -58,11 +58,11 @@
}
}
-function checkExceptionKey()
+function checkSitekey()
{
var attr = document.documentElement.getAttribute("data-adblockkey");
if (attr)
- ext.backgroundPage.sendMessage({type: "add-key-exception", token: attr});
+ ext.backgroundPage.sendMessage({type: "add-sitekey", sitekey: attr});
Wladimir Palant 2014/09/10 18:27:04 IMHO, the parameter name "token" is better left as
Thomas Greiner 2014/09/15 09:24:59 Done.
}
function hasInlineURL(element, attribute)
@@ -203,6 +203,6 @@
if (document instanceof HTMLDocument)
{
- checkExceptionKey();
+ checkSitekey();
init(document);
}
« no previous file with comments | « background.js ('k') | lib/whitelisting.js » ('j') | lib/whitelisting.js » ('J')

Powered by Google App Engine
This is Rietveld