Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feedback]: README likely has incorrect syntax #41

Open
bmulholland opened this issue Aug 21, 2023 · 0 comments
Open

[Feedback]: README likely has incorrect syntax #41

bmulholland opened this issue Aug 21, 2023 · 0 comments

Comments

@bmulholland
Copy link

bmulholland commented Aug 21, 2023

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);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant