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); |
} |