1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-06-05 22:09:25 +02:00

fix: extract service worker setup to Svelte app initialization

This commit is contained in:
Ondřej Synáček
2020-12-20 15:00:00 +01:00
parent a5b9887fec
commit 29ad7fcf73
6 changed files with 54 additions and 59 deletions

View File

@ -2,11 +2,14 @@ import App from './components/App.svelte'
import * as stores from './stores'
import * as services from './services'
import serviceWorkerBoot from './sw-boot'
const boot = () => {
services.storageListener.register()
serviceWorkerBoot()
new App({
target: document.querySelector('#root'),
})