Is there a way to set an event listener for a desktop notification?
document.addEventListener("desktop notification", function(){
// do something
});
I've looked through the MDN event reference, but the only event type for a notification seems to be only for alert()
.