Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Nov 30, 2022
1 parent b0323be commit 03a5e51
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"vue-router": "^4.1.6"
},
"devDependencies": {
"@antfu/eslint-config": "^0.32.0",
"@antfu/eslint-config": "^0.33.0",
"@iconify-json/carbon": "^1.1.11",
"@intlify/vite-plugin-vue-i18n": "^6.0.3",
"@types/markdown-it-link-attributes": "^3.0.1",
Expand Down
34 changes: 17 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions src/modules/pwa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ export const install: UserModule = ({ isClient, router }) => {
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 })
})
.catch(() => {})
}

0 comments on commit 03a5e51

Please sign in to comment.