1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49:12 +02:00

code review

This commit is contained in:
gorhill 2015-10-22 07:22:18 -04:00
parent 567b1007f8
commit 523ce7bfe0

View File

@ -2831,7 +2831,7 @@ vAPI.toolbarButton = {
var wId = tbb.id;
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);
if ( button === null ) {
continue;