From c2084c3f2a360b525a59cd1b7541b9c7d05a941f Mon Sep 17 00:00:00 2001 From: Gannicus Date: Sat, 6 Apr 2024 20:32:51 -0400 Subject: [PATCH] Maybe this will work! --- src/pages/settings/panes/Notifications.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pages/settings/panes/Notifications.tsx b/src/pages/settings/panes/Notifications.tsx index 755570b7..592029e6 100644 --- a/src/pages/settings/panes/Notifications.tsx +++ b/src/pages/settings/panes/Notifications.tsx @@ -97,9 +97,7 @@ export const Notifications = observer(() => { } const reg = - await navigator.serviceWorker.getRegistration( - `${window.location.origin}/sw.js`, - ); + await navigator.serviceWorker.getRegistration(); if (reg) { if (pushEnabled) { @@ -113,8 +111,6 @@ export const Notifications = observer(() => { ), }); - console.log(sub); - // tell the server we just subscribed const json = sub.toJSON(); if (json.keys) {