Skip to content

Version 0.1.0

Compare
Choose a tag to compare
@gabrielboliveira gabrielboliveira released this 29 Mar 21:00
· 16 commits to develop since this release

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