about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/actions/notifications.js
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2020-12-01 10:50:41 -0600
committerStarfall <us@starfall.systems>2020-12-01 10:50:41 -0600
commit63f2eb0c84d0c51f7ece341cc3f35518a3d69520 (patch)
tree57d362f393ff7ae7fdf6b4a00d654f8dbd9c9d7c /app/javascript/flavours/glitch/actions/notifications.js
parent19548d0a4bc303ca8017599577e21a6d522eb7bd (diff)
parent29812c2e59e02ea5ff8e4818a38b59944e2367ba (diff)
Merge branch 'glitch' into main
Diffstat (limited to 'app/javascript/flavours/glitch/actions/notifications.js')
-rw-r--r--app/javascript/flavours/glitch/actions/notifications.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/actions/notifications.js b/app/javascript/flavours/glitch/actions/notifications.js
index 7273191b2..9f12df773 100644
--- a/app/javascript/flavours/glitch/actions/notifications.js
+++ b/app/javascript/flavours/glitch/actions/notifications.js
@@ -345,7 +345,7 @@ export function setupBrowserNotifications() {
     if ('Notification' in window && 'permissions' in navigator) {
       navigator.permissions.query({ name: 'notifications' }).then((status) => {
         status.onchange = () => dispatch(setBrowserPermission(Notification.permission));
-      });
+      }).catch(console.warn);
     }
   };
 }