mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-06-07 14:43:04 -04:00
Modifying default.js behavior to stop the interval function when umbraBehaviorFinished returns true
We should do this in all behaviors ultimately to stop the behavior script upon completion
This commit is contained in:
parent
61cec15fff
commit
6e4e28d2df
1 changed files with 1 additions and 0 deletions
|
@ -138,6 +138,7 @@ var umbraBehaviorFinished = function() {
|
|||
if (umbraState.idleSince != null) {
|
||||
var idleTimeMs = Date.now() - umbraState.idleSince;
|
||||
if (idleTimeMs / 1000 > UMBRA_USER_ACTION_IDLE_TIMEOUT_SEC) {
|
||||
clearInterval(umbraIntervalId)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue