mirror of https://github.com/gorhill/uBlock.git
update badge only when block count changes
This commit is contained in:
parent
fda75755b8
commit
024219f59e
|
@ -471,9 +471,6 @@ vAPI.tabs.onPopup = function(details) {
|
|||
if ( pageStore ) {
|
||||
pageStore.logRequest(context, result);
|
||||
}
|
||||
if ( µb.userSettings.showIconBadge ) {
|
||||
µb.updateBadgeAsync(details.openerTabId);
|
||||
}
|
||||
|
||||
// Not blocked
|
||||
if ( µb.isAllowResult(result) ) {
|
||||
|
@ -481,6 +478,9 @@ vAPI.tabs.onPopup = function(details) {
|
|||
}
|
||||
|
||||
// Blocked
|
||||
if ( µb.userSettings.showIconBadge ) {
|
||||
µb.updateBadgeAsync(details.openerTabId);
|
||||
}
|
||||
|
||||
// It is a popup, block and remove the tab.
|
||||
µb.unbindTabFromPageStats(details.targetTabId);
|
||||
|
|
Loading…
Reference in New Issue