A small and simple free dependency to manage window idle.
npm install dw-idle-handler
const idleHandler = ;idleHandlerstarttimeout : 30 // minutesinactive : 5;idleHandler;idleHandler;idleHandler;
Thanks to the TabsManager package and local storage the library can has a persistent timer even if there are multiple browser tabs the timer will be the same for each window only allowing only one lnterval timer for the active tab or the last active tab, anyway when a tab has passed timeout all tabs will be notified by the timeout event
For previous versions <= 0.0.9
idleHandlerstarttimeout : 30 // minutesinactive : 5;idleHandler;idleHandler;idleHandler;
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.