Pinafore-Web-Client-Frontend/templates/main.js

16 lines
444 B
JavaScript
Raw Normal View History

2018-01-15 02:13:42 +01:00
import { init } from 'sapper/runtime.js'
2018-01-28 01:31:26 +01:00
import { loadPolyfills } from '../routes/_utils/loadPolyfills'
2018-02-09 07:36:12 +01:00
import '../routes/_utils/serviceWorkerClient'
import '../routes/_utils/historyEvents'
2018-02-15 03:37:19 +01:00
import '../routes/_utils/loadingMask'
2018-02-09 07:29:29 +01:00
2018-01-28 01:31:26 +01:00
loadPolyfills().then(() => {
2018-02-22 02:52:33 +01:00
console.log('init()')
2018-01-08 08:00:15 +01:00
// `routes` is an array of route objects injected by Sapper
init(document.querySelector('#sapper'), __routes__)
2018-02-09 07:29:29 +01:00
})
2018-04-14 04:46:25 +02:00
if (module.hot) {
module.hot.accept()
}