aboutsummaryrefslogtreecommitdiffstats
path: root/js/pagestore.js
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2014-06-24 18:29:55 -0400
committergorhill <rhill@raymondhill.net>2014-06-24 18:29:55 -0400
commit2b96334572b96d9f111741c5c5ff000d566cfc98 (patch)
tree918ed86093ea33339485d3cb2d37807bf5e7f043 /js/pagestore.js
parent8d60818be11e82172e114052a9ebe8d96b2cd4bd (diff)
downloaduBlock-2b96334572b96d9f111741c5c5ff000d566cfc98.zip
uBlock-2b96334572b96d9f111741c5c5ff000d566cfc98.tar.gz
uBlock-2b96334572b96d9f111741c5c5ff000d566cfc98.tar.bz2
this fixes #3
Diffstat (limited to 'js/pagestore.js')
-rw-r--r--js/pagestore.js4
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({