fix: service worker path

This commit is contained in:
kolaente 2022-04-02 17:23:23 +02:00
parent 175b786ec6
commit fb2eb4c439
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -3,7 +3,7 @@
import {register} from 'register-service-worker' import {register} from 'register-service-worker'
if (import.meta.env.PROD) { if (import.meta.env.PROD) {
register('/sw.ts', { register('/sw.js', {
ready() { ready() {
console.log('App is being served from cache by a service worker.') console.log('App is being served from cache by a service worker.')
}, },