Closed ggirard closed 6 years ago
Please update the minified version as well. Thank you for your contribution!
It's counting down too quickly now.
This was after 30 seconds (Top one is a simple setInterval for each second and removes 1 from the count. Bottom one uses the logic you provided)
Ok, rewritten to remove tab identification and countdown logic. That was dumb in the first place. Now uses a super reliable timestamp expiration date. Please see latest version (3.0)
Decrements the quantity of second by the difference of the current time and the last tab date.
The decrements by the heartbeat was causing a bug in our application. The session of our users is 90 minutes. Some of them was putting their computer in sleep and then try to continue their session when they return because the pop-up was not showing up. This implementation prevents that.