2020-12-15 10:23:20 +01:00
|
|
|
import App from './components/App.svelte'
|
|
|
|
|
|
|
|
import * as stores from './stores'
|
2020-12-15 21:16:30 +01:00
|
|
|
import * as services from './services'
|
2020-12-15 10:23:20 +01:00
|
|
|
|
|
|
|
const boot = () => {
|
2020-12-15 21:16:30 +01:00
|
|
|
|
|
|
|
services.storageListener.register()
|
|
|
|
|
2020-12-15 10:23:20 +01:00
|
|
|
new App({
|
|
|
|
target: document.querySelector('#root'),
|
|
|
|
})
|
|
|
|
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
|
|
window._fb2ical = {
|
|
|
|
...stores,
|
2020-12-15 21:16:30 +01:00
|
|
|
...services,
|
2020-12-15 10:23:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default boot
|