Skip to content

Commit

Permalink
Update common.js
Browse files Browse the repository at this point in the history
 en cours
  • Loading branch information
JeremieForge committed Dec 10, 2021
1 parent bd11f3c commit 7b3f78c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion WebApps/assets/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ var inactivityTime = function() {

function timerReset() {
// console.log("resetting timer");
var idleTime = 60000 // timeout ms
if(!$('#page-web').is(":hidden")){console.log('WE ON THE WEB'); idleTime = 300000;}
else{ console.log('WE NOT ON THE WEB'); idleTime = 60000; }
clearTimeout(timerInactivity);
timerInactivity = setTimeout(timerElapsed, 30000); // timeout ms
timerInactivity = setTimeout(timerElapsed, idleTime);
}
};
inactivityTime()
Expand Down

0 comments on commit 7b3f78c

Please sign in to comment.