1
0
mirror of https://github.com/nolanlawson/pinafore synced 2024-12-15 11:48:35 +01:00
Pinafore-Web-Client-Frontend/routes/_utils/asyncModules.js

19 lines
480 B
JavaScript
Raw Normal View History

2018-01-15 02:13:42 +01:00
const importURLSearchParams = () => import(
/* webpackChunkName: 'url-search-params' */ 'url-search-params'
).then(Params => {
window.URLSearchParams = Params
Object.defineProperty(window.URL.prototype, 'searchParams', {
get() {
return new Params(this.search)
}
})
})
2018-01-15 08:24:27 +01:00
const importTimeline = () => import(
/* webpackChunkName: 'Timeline' */ '../_components/Timeline.html'
).then(mod => mod.default)
2018-01-15 02:13:42 +01:00
export {
importURLSearchParams,
2018-01-15 08:24:27 +01:00
importTimeline
2018-01-15 02:13:42 +01:00
}