From 6a3f2242b633bb391caf4f5be4050277b65ce7a4 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 28 Feb 2015 15:34:50 -0500 Subject: [PATCH] this addresses #905#issuecomment-76543649 --- src/js/traffic.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/traffic.js b/src/js/traffic.js index 9f11486a0..ed1eb63d7 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -125,7 +125,11 @@ var onBeforeRequest = function(details) { pageStore.logRequest(requestContext, result); - µb.updateBadgeAsync(tabId); + // https://github.com/gorhill/uBlock/issues/905#issuecomment-76543649 + // No point updating the badge if it's not being displayed. + if ( µb.userSettings.showIconBadge ) { + µb.updateBadgeAsync(tabId); + } // https://github.com/gorhill/uBlock/issues/18 // Do not use redirection, we need to block outright to be sure the request