update badge only when block count changes

This commit is contained in:
gorhill 2015-04-15 18:45:07 -04:00
parent fda75755b8
commit 024219f59e
1 changed files with 3 additions and 3 deletions

View File

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