cleanup
This commit is contained in:
parent
a249b2a608
commit
6d90d44abc
|
@ -2,7 +2,7 @@ import { init } from 'sapper/runtime.js';
|
||||||
|
|
||||||
// polyfills
|
// polyfills
|
||||||
Promise.all([
|
Promise.all([
|
||||||
typeof URLSearchParams === 'undefined' && import('url-search-params').then(Params => {
|
typeof URLSearchParams === 'undefined' && import(/* webpackChunkName: 'url-search-params' */ 'url-search-params').then(Params => {
|
||||||
window.URLSearchParams = Params
|
window.URLSearchParams = Params
|
||||||
Object.defineProperty(window.URL.prototype, 'searchParams', {
|
Object.defineProperty(window.URL.prototype, 'searchParams', {
|
||||||
get() {
|
get() {
|
||||||
|
@ -11,7 +11,6 @@ Promise.all([
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
]).then(() => {
|
]).then(() => {
|
||||||
console.log('done')
|
|
||||||
// `routes` is an array of route objects injected by Sapper
|
// `routes` is an array of route objects injected by Sapper
|
||||||
init(document.querySelector('#sapper'), __routes__)
|
init(document.querySelector('#sapper'), __routes__)
|
||||||
})
|
})
|
Loading…
Reference in New Issue