diff options
Diffstat (limited to 'js/pagestore.js')
-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 }); |