mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-18 07:12:15 +00:00
Notifications
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user