From 4235f9a274dc39a59fc165b28c6b5e641255b75b Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 3 Sep 2014 21:18:36 -0400 Subject: [PATCH] this fixes #208 --- js/pagestore.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/pagestore.js b/js/pagestore.js index b4afe5bfc..a0a42efe8 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 });