From 5e2607fec2ae71cf98e2f4519c44d537afa4fb00 Mon Sep 17 00:00:00 2001 From: magnetenstad Date: Mon, 9 Oct 2023 00:38:49 +0200 Subject: [PATCH] Add sw.js --- public/sw.js | 0 src/main.ts | 3 +++ 2 files changed, 3 insertions(+) create mode 100644 public/sw.js diff --git a/public/sw.js b/public/sw.js new file mode 100644 index 0000000..e69de29 diff --git a/src/main.ts b/src/main.ts index 3548bb7..d509f13 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,3 +11,6 @@ Chart.register(...registerables) const pinia = createPinia() createApp(App).use(autoAnimatePlugin).use(pinia).use(router).mount('#app') + +// Empty service worker to enable PWA +navigator.serviceWorker.register('sw.js')