fix(pwa): force service worker unregistration to distribute latest fixes
This commit is contained in:
@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user