mirror of
https://github.com/Spythere/genera-tor.git
synced 2026-05-03 13:38:12 +00:00
Test SW
This commit is contained in:
+13
@@ -3,5 +3,18 @@ import App from './App.vue';
|
|||||||
import router from './router';
|
import router from './router';
|
||||||
import { createPinia } from 'pinia';
|
import { createPinia } from 'pinia';
|
||||||
|
|
||||||
|
import { registerSW } from 'virtual:pwa-register';
|
||||||
|
|
||||||
|
const intervalMS = 1 * 60 * 1000;
|
||||||
|
|
||||||
|
const updateSW = registerSW({
|
||||||
|
onNeedRefresh() {
|
||||||
|
console.log('Need refresh');
|
||||||
|
},
|
||||||
|
onOfflineReady() {
|
||||||
|
console.log('Offline ready');
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
createApp(App).use(router).use(createPinia()).mount('#app');
|
createApp(App).use(router).use(createPinia()).mount('#app');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user