diff options
author | gorhill <rhill@raymondhill.net> | 2015-06-11 09:33:39 -0400 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2015-06-11 09:33:39 -0400 |
commit | 19d34d2a40cf6e3bdc0f0d3006b0bad53fb251b5 (patch) | |
tree | 1c117e2d41221016d59dada01ecef73f11d6b902 /platform/firefox/vapi-background.js | |
parent | 098794537d02729d18401fe410210fa68eff4fcf (diff) | |
download | uBlock-19d34d2a40cf6e3bdc0f0d3006b0bad53fb251b5.zip uBlock-19d34d2a40cf6e3bdc0f0d3006b0bad53fb251b5.tar.gz uBlock-19d34d2a40cf6e3bdc0f0d3006b0bad53fb251b5.tar.bz2 |
this addresses #334
Diffstat (limited to 'platform/firefox/vapi-background.js')
-rw-r--r-- | platform/firefox/vapi-background.js | 6 |
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'); |