aboutsummaryrefslogtreecommitdiffstats
path: root/platform/firefox/vapi-background.js
diff options
context:
space:
mode:
Diffstat (limited to 'platform/firefox/vapi-background.js')
-rw-r--r--platform/firefox/vapi-background.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js
index 5e8924e..4fc856a 100644
--- a/platform/firefox/vapi-background.js
+++ b/platform/firefox/vapi-background.js
@@ -1891,11 +1891,11 @@ vAPI.toolbarButton.init = function() {
for ( var win of vAPI.tabs.getWindows() ) {
var button = win.document.getElementById(wId);
- if ( buttonInPanel ) {
- button.classList.remove('badged-button');
+ if ( button === null ) {
continue;
}
- if ( button === null ) {
+ if ( buttonInPanel ) {
+ button.classList.remove('badged-button');
continue;
}
button.classList.add('badged-button');