Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ubermanu committed Dec 22, 2023
1 parent 219dd35 commit 51fda45
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<script>
import '../app.postcss'
import { pwaInfo } from 'virtual:pwa-info'
import { onMount } from 'svelte'
onMount(async () => {
if (pwaInfo) {
const { registerSW } = await import('virtual:pwa-register')
if (pwaInfo) {
import('virtual:pwa-register').then(({ registerSW }) =>
registerSW({ immediate: true })
}
})
)
}
</script>

<svelte:head>
Expand Down

0 comments on commit 51fda45

Please sign in to comment.