RobinLinus před 6 roky
rodič
revize
f537b96213
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      client/scripts/ui.js

+ 2 - 2
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);