this addresses #905#issuecomment-76543649

This commit is contained in:
gorhill 2015-02-28 15:34:50 -05:00
parent dc8623f1e8
commit 6a3f2242b6
1 changed files with 5 additions and 1 deletions

View File

@ -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