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

Unified Diff: common.js

Issue 29573735: Issue 4580 - Replace ext.backgroundPage.sendMessage with runtime.sendMessage (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Created Oct. 11, 2017, 3:37 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 | « no previous file | desktop-options.js » ('j') | ext/content.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common.js
===================================================================
--- a/common.js
+++ b/common.js
@@ -21,17 +21,17 @@
function E(id)
{
return document.getElementById(id);
}
function getDocLink(link, callback)
{
- ext.backgroundPage.sendMessage({
+ chrome.runtime.sendMessage({
type: "app.get",
what: "doclink",
link
}, callback);
}
function setLinks(id, ...args)
{
@@ -55,17 +55,17 @@
links[i].href = "javascript:void(0);";
links[i].addEventListener("click", args[i], false);
}
}
}
function checkShareResource(url, callback)
{
- ext.backgroundPage.sendMessage({
+ chrome.runtime.sendMessage({
type: "filters.blocked",
url,
requestType: "SCRIPT",
docDomain: "adblockplus.org",
thirdParty: true
}, callback);
}
« no previous file with comments | « no previous file | desktop-options.js » ('j') | ext/content.js » ('J')

Powered by Google App Engine
This is Rietveld