GoogleChromeLabs / carlo

Web rendering surface for Node applications
Apache License 2.0
9.32k stars 309 forks source link

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

Open VandeurenGlenn opened 5 years ago

VandeurenGlenn commented 5 years ago
const permission = await Notification.requestPermission();

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

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

VandeurenGlenn commented 5 years ago

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