1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-22 18:32:45 +01:00

this addresses #334

This commit is contained in:
gorhill 2015-06-11 09:33:39 -04:00
parent 098794537d
commit 19d34d2a40

View File

@ -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');