Explorar el Código

Notifications

RobinLinus hace 7 años
padre
commit
f537b96213
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);