mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
Add: break after closing the first visible element
This commit is contained in:
parent
101f7f2e4a
commit
e701e3f101
@ -63,6 +63,8 @@ class UmbraBehavior {
|
||||
for (var i = 0; i < closeTargets.length; i++) {
|
||||
if (this.isVisible(closeTargets[i])) {
|
||||
closeTargets[i].click();
|
||||
didSomething = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user