Skip to content

Notification Link

Compare
Choose a tag to compare
@lnbc1QWFyb24 lnbc1QWFyb24 released this 15 Oct 04:50
· 85 commits to master since this release
06eb30c

This release adds an extra optional parameter to the wallet customization object so that notifications can easily be turned in to a link. Simply add a link parameter to the object that is returned from an emitter callback with the url you would like the link to direct to:

emitter.on('txConfirmed', transaction => {
  return {
    link: `https://etherscan.io/tx/${transaction.hash}`
  }
})

Also included in this release is a bugfix so that clicks on the "x" of a notification won't trigger the onclick handler or the new link parameter.

Changelog:

  • Fix: Don't propagate click on close icon (#173)
  • Feature: Notification link (#174)
  • Fix: Notification icon size (#175)