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 => |
{ |