From d5465d31598d4e64d5196ef2f2cb8bb1415eabe9 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 17 Apr 2015 15:25:36 -0600 Subject: [PATCH] Only update badge count when blocked --- src/js/tab.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/tab.js b/src/js/tab.js index 05cabffe9..e0ffe35f9 100644 --- a/src/js/tab.js +++ b/src/js/tab.js @@ -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") {