From 19d34d2a40cf6e3bdc0f0d3006b0bad53fb251b5 Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 11 Jun 2015 09:33:39 -0400 Subject: [PATCH] this addresses #334 --- platform/firefox/vapi-background.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 5e8924e72..4fc856afa 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');