fix(pwa): force service worker unregistration to distribute latest fixes

This commit is contained in:
2026-02-26 09:22:38 -05:00
parent d329336020
commit 12f5871f6f
2 changed files with 23 additions and 6 deletions

View File

@ -5,6 +5,15 @@ import i18n from './i18n'
import './style.css'
import App from './App.vue'
// Force unregister service workers to clear cache for now
if ('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistrations().then((registrations) => {
for (const registration of registrations) {
registration.unregister();
}
});
}
const app = createApp(App)
const pinia = createPinia()