Notification.requestPermission()
на сайте с September 09, 2023 12:19
The requestPermission() static method of the Notification interface requests permission from the user for the current origin to display notifications.