mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -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
@ -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…
x
Reference in New Issue
Block a user