pinafore/templates/main.js
2018-02-19 20:15:24 -08:00

14 lines
488 B
JavaScript

import { init } from 'sapper/runtime.js'
import { initStore } from '../routes/_store/store'
import { loadPolyfills } from '../routes/_utils/loadPolyfills'
import '../routes/_utils/offlineNotification'
import '../routes/_utils/serviceWorkerClient'
import '../routes/_utils/historyEvents'
import '../routes/_utils/loadingMask'
loadPolyfills().then(() => {
// `routes` is an array of route objects injected by Sapper
initStore()
init(document.querySelector('#sapper'), __routes__)
})