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

Unified Diff: background.js

Issue 29317001: Relocated icon and redesigned icon popup (Closed)
Patch Set: Rebased Created Nov. 19, 2013, 1:43 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: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -128,15 +128,15 @@
iconFilename = excluded ? "icons/abp-19-whitelisted.png" : "icons/abp-19.png";
}
- tab.pageAction.setIcon(iconFilename);
- tab.pageAction.setTitle(ext.i18n.getMessage("name"));
+ tab.browserAction.setIcon(iconFilename);
+ tab.browserAction.setTitle(ext.i18n.getMessage("name"));
iconAnimation.registerTab(tab, iconFilename);
if (localStorage.shouldShowIcon == "false")
- tab.pageAction.hide();
+ tab.browserAction.hide();
else
- tab.pageAction.show();
+ tab.browserAction.show();
if (require("info").platform == "chromium") // TODO: Implement context menus for Safari
// Set context menu status according to whether current tab has whitelisted domain

Powered by Google App Engine
This is Rietveld