diff --git a/templates/template-vue/src/components/PWABadge.vue b/templates/template-vue/src/components/PWABadge.vue index b58cecc..a00914c 100644 --- a/templates/template-vue/src/components/PWABadge.vue +++ b/templates/template-vue/src/components/PWABadge.vue @@ -39,7 +39,7 @@ const { offlineReady, needRefresh, updateServiceWorker } = useRegisterSW({ if (period <= 0) return if (r?.active?.state === 'activated') { swActivated.value = true - registerPeriodicSync(period, swUrl, r) + registerPeriodicSync(swUrl, r) } else if (r?.installing) { r.installing.addEventListener('statechange', (e) => { @@ -47,7 +47,7 @@ const { offlineReady, needRefresh, updateServiceWorker } = useRegisterSW({ const sw = e.target swActivated.value = sw.state === 'activated' if (swActivated.value) - registerPeriodicSync(period, swUrl, r) + registerPeriodicSync(swUrl, r) }) } },