Facebook-Events-iCal-Converter/lib/frontend/index.js

28 lines
489 B
JavaScript
Raw Normal View History

import App from './components/App.svelte'
import * as stores from './stores'
import * as services from './services'
import serviceWorkerBoot from './sw-boot'
import loggerBoot from './logger-boot'
const boot = () => {
services.storageListener.register()
serviceWorkerBoot()
loggerBoot()
new App({
target: document.querySelector('#root'),
})
if (process.env.NODE_ENV === 'development') {
window._fb2ical = {
...stores,
...services,
}
}
}
boot()