aboutsummaryrefslogtreecommitdiffstats
path: root/platform
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-06-11 09:33:39 -0400
committergorhill <rhill@raymondhill.net>2015-06-11 09:33:39 -0400
commit19d34d2a40cf6e3bdc0f0d3006b0bad53fb251b5 (patch)
tree1c117e2d41221016d59dada01ecef73f11d6b902 /platform
parent098794537d02729d18401fe410210fa68eff4fcf (diff)
downloaduBlock-19d34d2a40cf6e3bdc0f0d3006b0bad53fb251b5.zip
uBlock-19d34d2a40cf6e3bdc0f0d3006b0bad53fb251b5.tar.gz
uBlock-19d34d2a40cf6e3bdc0f0d3006b0bad53fb251b5.tar.bz2
this addresses #334
Diffstat (limited to 'platform')
-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');