This commit is contained in:
@ -1,10 +1,16 @@
|
||||
import { createApp } from "vue";
|
||||
import { createPinia } from "pinia";
|
||||
import piniaPersist from "pinia-plugin-persist";
|
||||
import { registerSW } from "virtual:pwa-register";
|
||||
|
||||
import App from "@/App.vue";
|
||||
import router from "@/router";
|
||||
|
||||
if ("serviceWorker" in navigator) {
|
||||
// && !/localhost/.test(window.location)) {
|
||||
registerSW();
|
||||
}
|
||||
|
||||
const app = createApp(App);
|
||||
const pinia = createPinia();
|
||||
pinia.use(piniaPersist);
|
||||
|
Reference in New Issue
Block a user