refactor: clean up boilerplate

This commit is contained in:
liyasthomas
2021-12-01 23:15:14 +05:30
parent 190a4c43ef
commit 63005c01ce
15 changed files with 169 additions and 127 deletions

View File

@@ -2,8 +2,7 @@ import { UserModule } from "~/types"
// https://github.com/antfu/vite-plugin-pwa#automatic-reload-when-new-content-available
export const install: UserModule = ({ isClient, router }) => {
if (!isClient)
return
if (!isClient) return
router.isReady().then(async() => {
const { registerSW } = await import("virtual:pwa-register")