From d5ac34eb7324cfa52610c45cd1f3b27e1683d414 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Mon, 15 Jan 2018 09:43:48 -0800 Subject: [PATCH] fix URLSearchParams polyfill --- templates/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/main.js b/templates/main.js index 6495f78..f55c872 100644 --- a/templates/main.js +++ b/templates/main.js @@ -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__)