pinafore/templates/main.js

14 lines
488 B
JavaScript
Raw Normal View History

2018-01-15 01:13:42 +00:00
import { init } from 'sapper/runtime.js'
2018-02-20 04:15:24 +00:00
import { initStore } from '../routes/_store/store'
2018-01-28 00:31:26 +00:00
import { loadPolyfills } from '../routes/_utils/loadPolyfills'
2018-02-09 06:36:12 +00:00
import '../routes/_utils/offlineNotification'
import '../routes/_utils/serviceWorkerClient'
import '../routes/_utils/historyEvents'
2018-02-15 02:37:19 +00:00
import '../routes/_utils/loadingMask'
2018-02-09 06:29:29 +00:00
2018-01-28 00:31:26 +00:00
loadPolyfills().then(() => {
2018-01-08 07:00:15 +00:00
// `routes` is an array of route objects injected by Sapper
2018-02-20 04:15:24 +00:00
initStore()
2018-01-08 07:00:15 +00:00
init(document.querySelector('#sapper'), __routes__)
2018-02-09 06:29:29 +00:00
})