Skip to content

Commit

Permalink
Ignore service worker update errors
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 committed Sep 1, 2024
1 parent c63df25 commit 05840f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/registerServiceWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function registerServiceWorker(router: Router) {
if (!registration) return

// Routinely check for app updates by testing for a new service worker
setInterval(() => registration.update(), 60 * 60 * 1000)
setInterval(() => registration.update().catch(() => {}), 60 * 60 * 1000)
},

onNeedRefresh() {
Expand Down

0 comments on commit 05840f0

Please sign in to comment.