Notification: error event
Web Notifications
Web Notifications
The error event of the Notification interface fires when something goes wrong with a Notification (in many cases an error preventing the notification from being displayed.)
Syntax
Use the event name in addEventListener():
addEventListener("error", (event) => { })
Alternatively, assign to the event handler property of the interface:
onerror = (event) => { }
Event type
A generic Event.