From 5fb5cf58599a2f76be56a0d0863e700a628d1030 Mon Sep 17 00:00:00 2001 From: Ken Eucker Date: Mon, 22 Jan 2024 08:35:32 -0800 Subject: [PATCH] The serviceworker isn't updating. --- src/components/ServiceWorker.vue | 2 +- src/store/index.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/ServiceWorker.vue b/src/components/ServiceWorker.vue index 49fc9dd4..a203c739 100644 --- a/src/components/ServiceWorker.vue +++ b/src/components/ServiceWorker.vue @@ -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) } diff --git a/src/store/index.ts b/src/store/index.ts index fb3b687f..6fb3ac19 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -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