1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00

this addresses 905#issuecomment-76543649

This commit is contained in:
gorhill 2015-02-28 15:34:50 -05:00
parent dc8623f1e8
commit 972ef5293d

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