carlo
carlo copied to clipboard
Notification.onclick() doesn't seem to work
const permission = await Notification.requestPermission();
if (permission === "granted") {
new Notification('some-title').onclick = (ev) => {
console.log(ev)
}
}
It works for me - I open DevTools on my Carlo window and I see the Event there...
I just tested and for me it only works with chromium, where you also on chromium?