hoodiehq / hoodie-connection-status

:dog: connection status API for the browser
Apache License 2.0
5 stars 10 forks source link

connectionStatus.reset should trigger 'reset' event #20

Closed gr2m closed 8 years ago

gr2m commented 8 years ago

connectionStatus.reset should trigger a reset event as mentioned in the README, which it currently does not.

connectionStatus.on('reset', function () {
  console.log('reset triggered')
})
connectionStatus.reset(options).then(function () {
  // "reset triggered" logged.
})

Ping me in the Hoodie Chat or on Twitter if you have any questions