feat: Ajout du mode offline
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-04-29 23:56:00 +02:00
parent 370949cfe0
commit 2de488f3bf
5 changed files with 5917 additions and 3863 deletions

View File

@ -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);