| Index: common.js |
| =================================================================== |
| --- a/common.js |
| +++ b/common.js |
| @@ -21,17 +21,17 @@ |
| function E(id) |
| { |
| return document.getElementById(id); |
| } |
| function getDocLink(link, callback) |
| { |
| - chrome.runtime.sendMessage({ |
| + browser.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) |
| { |
| - chrome.runtime.sendMessage({ |
| + browser.runtime.sendMessage({ |
| type: "filters.blocked", |
| url, |
| requestType: "SCRIPT", |
| docDomain: "adblockplus.org", |
| thirdParty: true |
| }, callback); |
| } |