carlo icon indicating copy to clipboard operation
carlo copied to clipboard

Notification.onclick() doesn't seem to work

Open VandeurenGlenn opened this issue 6 years ago • 2 comments

const permission = await Notification.requestPermission();

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

VandeurenGlenn avatar Apr 11 '19 20:04 VandeurenGlenn

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

pavelfeldman avatar Apr 11 '19 21:04 pavelfeldman

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

VandeurenGlenn avatar Apr 12 '19 10:04 VandeurenGlenn