- Source
Methods
(static) add(notification)
Create a web notification
Parameters:
Name | Type | Description |
---|---|---|
notification | Object | Notification object |
- Source
(static) play(file)
Play a sound file
Parameters:
Name | Type | Description |
---|---|---|
file | String | Path to sound file |
- Source
(static) register(force)
Setup the web notifications api permissions and notify the user that they're now active
Parameters:
Name | Type | Description |
---|---|---|
force | Boolean | Force the notification registration even if already denied |
- Source