mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-03 09:39:38 +02:00
this addresses #334
This commit is contained in:
parent
098794537d
commit
19d34d2a40
@ -1891,11 +1891,11 @@ vAPI.toolbarButton.init = function() {
|
|||||||
|
|
||||||
for ( var win of vAPI.tabs.getWindows() ) {
|
for ( var win of vAPI.tabs.getWindows() ) {
|
||||||
var button = win.document.getElementById(wId);
|
var button = win.document.getElementById(wId);
|
||||||
if ( buttonInPanel ) {
|
if ( button === null ) {
|
||||||
button.classList.remove('badged-button');
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ( button === null ) {
|
if ( buttonInPanel ) {
|
||||||
|
button.classList.remove('badged-button');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
button.classList.add('badged-button');
|
button.classList.add('badged-button');
|
||||||
|
Loading…
Reference in New Issue
Block a user