diff options
| author | Fuwn <[email protected]> | 2025-01-28 21:09:02 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-01-28 21:09:02 -0800 |
| commit | dec63cd1932dcbe1bf154bc3353e534b8420793e (patch) | |
| tree | d1164378f44920dac547d306aeee01780becc7aa /src/lib/Utility | |
| parent | feat(notifications): fallback on service-worker-less notifications (diff) | |
| download | due.moe-dec63cd1932dcbe1bf154bc3353e534b8420793e.tar.xz due.moe-dec63cd1932dcbe1bf154bc3353e534b8420793e.zip | |
feat(notifications): initial notification update on first visit
Diffstat (limited to 'src/lib/Utility')
| -rw-r--r-- | src/lib/Utility/notifications.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Utility/notifications.ts b/src/lib/Utility/notifications.ts index 929fe6a4..cba430e9 100644 --- a/src/lib/Utility/notifications.ts +++ b/src/lib/Utility/notifications.ts @@ -26,7 +26,7 @@ export const requestNotifications = async () => { await fetch(`/api/notifications/unsubscribe?p=${getFingerprint()}`, { method: 'POST' }); - + await updateLocalNotifications() setInterval(async () => await updateLocalNotifications(), 1000 * 60); } } |