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

Unified Diff: common.js

Issue 29573083: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Add polyfill.js to README.md Created Oct. 17, 2017, 12:35 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') | desktop-options.html » ('j') | no next file with comments »
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)
{
- 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);
}
« no previous file with comments | « background.js ('k') | desktop-options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld