Only update badge count when blocked

This commit is contained in:
Chris 2015-04-17 15:25:36 -06:00
parent 06a3526207
commit d5465d3159
1 changed files with 3 additions and 3 deletions

View File

@ -464,9 +464,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) ) {
@ -474,6 +471,9 @@ vAPI.tabs.onPopup = function(details) {
}
// Blocked
if ( µb.userSettings.showIconBadge ) {
µb.updateBadgeAsync(details.openerTabId);
}
// It is a popup, block and remove the tab.
if(details.targetTabId !== "preempt") {