Skip to content

Commit

Permalink
Merge pull request #30 from ntnui-darts/#28-make-pwa
Browse files Browse the repository at this point in the history
Add sw.js
  • Loading branch information
magnetenstad authored Oct 8, 2023
2 parents 78d7288 + 5e2607f commit 1340be9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Empty file added public/sw.js
Empty file.
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 1340be9

Please sign in to comment.