Skip to content

Releases: fireworkweb/inactivejs

Version 0.1.1

03 Apr 16:19
6f7e9a8
Compare
Choose a tag to compare

Bug fixes

  • #3 : Idle check not working when calling with only one callback (onAway or onBack)

Version 0.1.0

29 Mar 21:00
Compare
Choose a tag to compare

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

28 Mar 17:53
Compare
Choose a tag to compare

First release! 😄