mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-06-16 02:49:37 -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++) {
|
for (var i = 0; i < closeTargets.length; i++) {
|
||||||
if (this.isVisible(closeTargets[i])) {
|
if (this.isVisible(closeTargets[i])) {
|
||||||
closeTargets[i].click();
|
closeTargets[i].click();
|
||||||
|
didSomething = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue