diff options
author | gorhill <rhill@raymondhill.net> | 2014-09-03 21:18:36 -0400 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2014-09-03 21:18:36 -0400 |
commit | 4235f9a274dc39a59fc165b28c6b5e641255b75b (patch) | |
tree | 828b68a23c14feeedbd1fa27ec8e9246e98b3a58 | |
parent | e8eb452f735c31e598aae96da963290f8343ac39 (diff) | |
download | uBlock-4235f9a274dc39a59fc165b28c6b5e641255b75b.zip uBlock-4235f9a274dc39a59fc165b28c6b5e641255b75b.tar.gz uBlock-4235f9a274dc39a59fc165b28c6b5e641255b75b.tar.bz2 |
this fixes #208
-rw-r--r-- | js/pagestore.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/pagestore.js b/js/pagestore.js index b4afe5b..a0a42ef 100644 --- a/js/pagestore.js +++ b/js/pagestore.js @@ -216,7 +216,9 @@ PageStore.prototype.updateBadgeFromTab = function(tab) { return; } var netFiltering = this.getNetFilteringSwitch(); - var iconPath = netFiltering ? 'img/browsericons/icon19.png' : 'img/browsericons/icon19-off.png'; + var iconPath = netFiltering ? + { '19': 'img/browsericons/icon19.png', '38': 'img/browsericons/icon38.png' } : + { '19': 'img/browsericons/icon19-off.png', '38': 'img/browsericons/icon38-off.png' }; chrome.browserAction.setIcon({ tabId: tab.id, path: iconPath }); |