Skip to content

Commit

Permalink
The serviceworker isn't updating.
Browse files Browse the repository at this point in the history
  • Loading branch information
KenEucker committed Jan 22, 2024
1 parent 8013cc6 commit 5fb5cf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ServiceWorker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const { offlineReady, needRefresh, updateServiceWorker } = useRegisterSW({
setInterval(async () => {
debug('Checking for sw update')
await r.update()
}, 1000 /* 20s for testing purposes */)
}, 3000 /* 20s for testing purposes */)
} else {
debug('app::service worker registered', r?.active)
}
Expand Down
4 changes: 3 additions & 1 deletion src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,9 @@ export const useBikeTagStore = defineStore(BikeTagDefaults.store, {
return `https://biketag.org/${BikeTagDefaults.jingle}`
},
getGameTitle(state) {
return `${state.gameName?.toUpperCase()}.BIKETAG`
const gamePrefix = state.gameName?.length ? `${state.gameName?.toUpperCase()}.` : ''
const gamePostfix = state.gameName?.length ? '' : '.ORG'
return `${gamePrefix}BIKETAG${gamePostfix}`
},
getDefaultLogo() {
return BikeTagDefaults.logo
Expand Down

0 comments on commit 5fb5cf5

Please sign in to comment.