Skip to content

Commit

Permalink
check every 1h for a new version
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Nov 19, 2023
1 parent a9a879d commit 5d90ed7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export default defineComponent({
})
const store = useStore()
// handle PWA updates with prompt if a new version is detected, check every 8h for a new version
const checkForNewVersionsIntervalSeconds = 8 * 60 * 60
// handle PWA updates with prompt if a new version is detected, check regularly for a new version
const checkForNewVersionsIntervalSeconds = 1 * 60 * 60
const updateServiceWorker = registerSW({
// check for new app version, see https://vite-pwa-org.netlify.app/guide/periodic-sw-updates.html
onRegisteredSW(swScriptUrl : string, registration? : ServiceWorkerRegistration) {
Expand Down

0 comments on commit 5d90ed7

Please sign in to comment.