Notifications
This commit is contained in:
parent
476cb0ae65
commit
f537b96213
1 changed files with 2 additions and 2 deletions
|
@ -364,9 +364,9 @@ class Notifications {
|
||||||
}
|
}
|
||||||
if (serviceWorker && serviceWorker.showNotification) {
|
if (serviceWorker && serviceWorker.showNotification) {
|
||||||
// android doesn't support "new Notification" if service worker is installed
|
// android doesn't support "new Notification" if service worker is installed
|
||||||
config.actions = {
|
config.actions = [
|
||||||
{ "action": "yes", "title": "Yes"}
|
{ "action": "yes", "title": "Yes"}
|
||||||
};
|
];
|
||||||
return serviceWorker.showNotification(message, config);
|
return serviceWorker.showNotification(message, config);
|
||||||
} else {
|
} else {
|
||||||
return new Notification(message, config);
|
return new Notification(message, config);
|
||||||
|
|
Loading…
Reference in a new issue