Idle Handler
A small and simple free dependency to manage window idle.
Installation
npm install dw-idle-handler
Usage
const idleHandler = ; idleHandlerstart timeout : 30 // minutes inactive : 5 ; idleHandler; idleHandler; idleHandler;
Note
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
idleHandlerstart timeout : 30 // minutes inactive : 5 ;idleHandler;idleHandler;idleHandler;
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.