fix URLSearchParams polyfill
This commit is contained in:
parent
234c21f249
commit
d5ac34eb73
|
@ -1,8 +1,9 @@
|
||||||
import { init } from 'sapper/runtime.js'
|
import { init } from 'sapper/runtime.js'
|
||||||
|
import { importURLSearchParams } from '../routes/_utils/asyncModules'
|
||||||
|
|
||||||
// polyfills
|
// polyfills
|
||||||
Promise.all([
|
Promise.all([
|
||||||
typeof URLSearchParams === 'undefined' && importURLParams()
|
typeof URLSearchParams === 'undefined' && importURLSearchParams()
|
||||||
]).then(() => {
|
]).then(() => {
|
||||||
// `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 a new issue