store.notify. actions

Methods

(static) add(notification)

Create a web notification

Parameters:
NameTypeDescription
notificationObject

Notification object

(static) play(file)

Play a sound file

Parameters:
NameTypeDescription
fileString

Path to sound file

(static) register(force)

Setup the web notifications api permissions and notify the user that they're now active

Parameters:
NameTypeDescription
forceBoolean

Force the notification registration even if already denied