Notifications

This commit is contained in:
RobinLinus 2018-09-21 22:32:39 +02:00
parent 476cb0ae65
commit f537b96213

View file

@ -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);