Releases: fireworkweb/inactivejs
Releases · fireworkweb/inactivejs
Version 0.1.1
Bug fixes
- #3 : Idle check not working when calling with only one callback (onAway or onBack)
Version 0.1.0
Features
Added:
- onVisible (callback): callback to be executed when the tab is visible
- onHidden (callback): callback to be executed when the tab is hidden
- events (array): events to listen for
- autoStart (boolean): if start timer automatically
- throttle (ms): ms to throttle the event listeners, undefined/false to disable it
- start(): if you configured autoStart to false, this method will start the timer
- stop(): if needed, this will stop the timer
Version 0.0.1
First release! 😄