Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
corrideat committed Dec 31, 2024
1 parent efcf79e commit 0ddaaa4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/controller/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,12 @@ sbp('sbp/selectors/register', {
return
}

navigator.serviceWorker.ready.then((registration) =>
return navigator.serviceWorker.ready.then((registration) =>
registration.periodicSync.register('periodic-notifications', {
// An interval of 12 hours
minInterval: 12 * 60 * 60 * 1000
}))
})
)
}).catch((e) => {
console.error('[service-workers/setup] Error setting up periodic background sync events', e)
})
Expand Down

0 comments on commit 0ddaaa4

Please sign in to comment.