mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-05-17 14:00:30 -04:00
Add: break after closing the first visible element
This commit is contained in:
parent
101f7f2e4a
commit
e701e3f101
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue