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

Notification.onclick() doesn't seem to work #151

Open
VandeurenGlenn opened this issue Apr 11, 2019 · 2 comments
Open

Notification.onclick() doesn't seem to work #151

VandeurenGlenn opened this issue Apr 11, 2019 · 2 comments

Comments

@VandeurenGlenn
Copy link

const permission = await Notification.requestPermission();

if (permission === "granted") {
  new Notification('some-title').onclick = (ev) => {
    console.log(ev)
  }
}
@pavelfeldman
Copy link
Collaborator

It works for me - I open DevTools on my Carlo window and I see the Event there...

@VandeurenGlenn
Copy link
Author

I just tested and for me it only works with chromium, where you also on chromium?

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

2 participants