OneSignal / onesignal-vue

Vue OneSignal Plugin: Make it easy to integrate OneSignal with your Vue App!
Other
13 stars 2 forks source link

[Feedback]: README likely has incorrect syntax #41

Open bmulholland opened 1 year ago

bmulholland commented 1 year ago

What's on your mind?

https://github.com/OneSignal/onesignal-vue#advanced-usage

This section has a code example of OneSignal use directly, not via the vue methods. Given that addEventListener is in index.ts, I suspect it's intended to be:

**this.$**OneSignal.Notifications.addEventListener('click', (event) => {
  console.log("The notification was clicked!", event);
});