mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-02 09:09:38 +02:00
code review
This commit is contained in:
parent
567b1007f8
commit
523ce7bfe0
@ -2831,7 +2831,7 @@ vAPI.toolbarButton = {
|
|||||||
var wId = tbb.id;
|
var wId = tbb.id;
|
||||||
var buttonInPanel = CustomizableUI.getWidget(wId).areaType === CustomizableUI.TYPE_MENU_PANEL;
|
var buttonInPanel = CustomizableUI.getWidget(wId).areaType === CustomizableUI.TYPE_MENU_PANEL;
|
||||||
|
|
||||||
for ( var win of vAPI.tabs.getWindows() ) {
|
for ( var win of winWatcher.getWindows() ) {
|
||||||
var button = win.document.getElementById(wId);
|
var button = win.document.getElementById(wId);
|
||||||
if ( button === null ) {
|
if ( button === null ) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user