fix: remove pwa to fix cdn conflict
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { type UserModule } from '~/types'
|
||||
|
||||
// https://github.com/antfu/vite-plugin-pwa#automatic-reload-when-new-content-available
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
export const install: UserModule = ({ isClient, router }) => {
|
||||
if (!isClient)
|
||||
return
|
||||
// if (!isClient)
|
||||
// return
|
||||
|
||||
router.isReady().then(async () => {
|
||||
const { registerSW } = await import('virtual:pwa-register')
|
||||
registerSW({ immediate: true })
|
||||
})
|
||||
// router.isReady().then(async () => {
|
||||
// const { registerSW } = await import('virtual:pwa-register')
|
||||
// registerSW({ immediate: true })
|
||||
// })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user