1
0
mirror of https://github.com/nolanlawson/pinafore synced 2024-12-12 18:28:03 +01:00
Pinafore-Web-Client-Frontend/templates/main.js
2018-04-13 20:49:52 -07:00

16 lines
444 B
JavaScript

import { init } from 'sapper/runtime.js'
import { loadPolyfills } from '../routes/_utils/loadPolyfills'
import '../routes/_utils/serviceWorkerClient'
import '../routes/_utils/historyEvents'
import '../routes/_utils/loadingMask'
loadPolyfills().then(() => {
console.log('init()')
// `routes` is an array of route objects injected by Sapper
init(document.querySelector('#sapper'), __routes__)
})
if (module.hot) {
module.hot.accept()
}