Skip to content

Releases: fireworkweb/inactivejs

Version 0.1.1

Choose a tag to compare

@gabrielboliveira gabrielboliveira released this 03 Apr 16:19
6f7e9a8

Bug fixes

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

Version 0.1.0

Choose a tag to compare

@gabrielboliveira gabrielboliveira released this 29 Mar 21:00

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

Choose a tag to compare

@gabrielboliveira gabrielboliveira released this 28 Mar 17:53

First release! 😄