Index: background.js |
=================================================================== |
--- a/background.js |
+++ b/background.js |
@@ -103,8 +103,7 @@ |
// Adds or removes browser action icon according to options. |
function refreshIconAndContextMenu(tab) |
{ |
- if(!/^https?:/.test(tab.url)) |
- return; |
+ var excluded = !/^https?:/.test(tab.url) || isWhitelisted(tab.url); |
var iconFilename; |
if (require("info").platform == "safari") |
@@ -113,10 +112,7 @@ |
// aren't per tab in Safari. |
iconFilename = "icons/abp-16.png" |
else |
- { |
- var excluded = isWhitelisted(tab.url); |
iconFilename = excluded ? "icons/abp-19-whitelisted.png" : "icons/abp-19.png"; |
- } |
tab.browserAction.setIcon(iconFilename); |
iconAnimation.registerTab(tab, iconFilename); |