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

Unified Diff: lib/icon.js

Issue 29570614: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Update adblockplusui dependency Created Oct. 17, 2017, 1:02 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 | « lib/firefoxDataCleanup.js ('k') | lib/io.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/icon.js
===================================================================
--- a/lib/icon.js
+++ b/lib/icon.js
@@ -63,17 +63,17 @@
else
{
page.browserAction.setIcon("/icons/abp-$size" +
(whitelisted ? "-whitelisted" : "") + ".png");
}
}
else
{
- chrome.browserAction.setIcon({
+ browser.browserAction.setIcon({
tabId: page.id,
imageData: frames["" + opacity + whitelisted]
});
}
}
FilterNotifier.on("page.WhitelistingStateRevalidate", (page, filter) =>
{
@@ -139,17 +139,17 @@
}
return frames;
});
}
function animateIcon(notificationType, frames)
{
- chrome.tabs.query({active: true}, tabs =>
+ browser.tabs.query({active: true}, tabs =>
{
let pages = tabs.map(tab => new ext.Page(tab));
let animationStep = 0;
let opacity = 0;
let onActivated = page =>
{
« no previous file with comments | « lib/firefoxDataCleanup.js ('k') | lib/io.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld