Notifications
permission "request" "notifications"permission "request" "notifications"
hasperms = false
mainloop:
if hasperms.not (
// only check while you don't have permissions
if window.permissions.contains("notifications") (
hasperms = true
) else (
exit
// this stops the execution of the program for this frame
)
)
Sending a notification
Getting all notifications
Info on the notification array
Last updated