소스 검색

Notifications

RobinLinus 6 년 전
부모
커밋
f537b96213
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);