Skip to content

Commit

Permalink
Replace custom service worker with vite-plugin-pwa
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarrough committed Jul 21, 2023
1 parent d18d52a commit c11914c
Show file tree
Hide file tree
Showing 5 changed files with 2,926 additions and 144 deletions.
6 changes: 0 additions & 6 deletions index.html
Expand Up @@ -20,12 +20,6 @@
<script async src="/src/ui/index.js" type="module"></script>
<script async src="/src/main.js" type="module"></script>
<script>
// Offline support
if (!location.origin.includes('localhost') && 'serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/service-worker.js')
})
}
window.TONE_SILENCE_LOGGING = true
</script>
<noscript>
Expand Down

0 comments on commit c11914c

Please sign in to comment.