Skip to content

Commit

Permalink
update badge only when block count changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Apr 15, 2015
1 parent fda7575 commit 024219f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/tab.js
Expand Up @@ -471,16 +471,16 @@ 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) ) {
return;
}

// Blocked
if ( µb.userSettings.showIconBadge ) {
µb.updateBadgeAsync(details.openerTabId);
}

// It is a popup, block and remove the tab.
µb.unbindTabFromPageStats(details.targetTabId);
Expand Down

0 comments on commit 024219f

Please sign in to comment.