snapdrop

A Progressive Web App for local file sharing
git clone http://git.hanabi.in/repos/snapdrop.git
Log | Files | Refs | README | LICENSE

commit f537b9621350fd1ea6694e7a2a8d3eca1edbf012
parent 476cb0ae6525177d7ea0519c9f0c4de67d2bf0f3
Author: RobinLinus <robinlinus@users.noreply.github.com>
Date:   Fri, 21 Sep 2018 22:32:39 +0200

Notifications

Diffstat:
Mclient/scripts/ui.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/scripts/ui.js b/client/scripts/ui.js @@ -364,9 +364,9 @@ class Notifications { } if (serviceWorker && serviceWorker.showNotification) { // android doesn't support "new Notification" if service worker is installed - config.actions = { + config.actions = [ { "action": "yes", "title": "Yes"} - }; + ]; return serviceWorker.showNotification(message, config); } else { return new Notification(message, config);