diff options
author | gorhill <rhill@raymondhill.net> | 2014-06-24 18:29:55 -0400 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2014-06-24 18:29:55 -0400 |
commit | 2b96334572b96d9f111741c5c5ff000d566cfc98 (patch) | |
tree | 918ed86093ea33339485d3cb2d37807bf5e7f043 /js/pagestore.js | |
parent | 8d60818be11e82172e114052a9ebe8d96b2cd4bd (diff) | |
download | uBlock-2b96334572b96d9f111741c5c5ff000d566cfc98.zip uBlock-2b96334572b96d9f111741c5c5ff000d566cfc98.tar.gz uBlock-2b96334572b96d9f111741c5c5ff000d566cfc98.tar.bz2 |
this fixes #3
Diffstat (limited to 'js/pagestore.js')
-rw-r--r-- | js/pagestore.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/pagestore.js b/js/pagestore.js index 823f3b9..8921b89 100644 --- a/js/pagestore.js +++ b/js/pagestore.js @@ -117,13 +117,13 @@ PageStore.prototype.recordRequest = function(type, url, block) { // notifying me, and this causes internal cached state to be out of sync. PageStore.prototype.updateBadge = function() { - var netFilteringSwitch = µBlock.getNetFilteringSwitch(this.pageHostname); + var netFilteringSwitch = µb.getNetFilteringSwitch(this.pageHostname); var iconPath = netFilteringSwitch ? 'img/browsericons/icon19.png' : 'img/browsericons/icon19-off.png'; chrome.browserAction.setIcon({ tabId: this.tabId, path: iconPath }); var iconStr = ''; - if ( netFilteringSwitch && this.perLoadBlockedRequestCount ) { + if ( µb.userSettings.showIconBadge && netFilteringSwitch && this.perLoadBlockedRequestCount ) { iconStr = µb.formatCount(this.perLoadBlockedRequestCount); } chrome.browserAction.setBadgeText({ |