mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-13 18:57:02 +01:00
19 lines
448 B
JavaScript
19 lines
448 B
JavaScript
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)
|
|
}
|
|
})
|
|
})
|
|
|
|
const importToast = () => import(
|
|
/* webpackChunkName: 'toast' */ './toast'
|
|
).then(mod => mod.toast)
|
|
|
|
export {
|
|
importURLSearchParams,
|
|
importToast
|
|
} |