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: Rebase Created Oct. 13, 2017, 7:59 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
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') | lib/notificationHelper.js » ('J')

Powered by Google App Engine
This is Rietveld