fix URLSearchParams polyfill

This commit is contained in:
Nolan Lawson 2018-01-15 09:43:48 -08:00
parent 234c21f249
commit d5ac34eb73
1 changed files with 2 additions and 1 deletions

View File

@ -1,8 +1,9 @@
import { init } from 'sapper/runtime.js'
import { importURLSearchParams } from '../routes/_utils/asyncModules'
// polyfills
Promise.all([
typeof URLSearchParams === 'undefined' && importURLParams()
typeof URLSearchParams === 'undefined' && importURLSearchParams()
]).then(() => {
// `routes` is an array of route objects injected by Sapper
init(document.querySelector('#sapper'), __routes__)