don't repace spaces

This commit is contained in:
Peli de Halleux 2016-09-02 21:38:22 -07:00
parent a9ecadaf09
commit 50293fc654

View File

@ -31,7 +31,7 @@ namespace pxsim {
export function parseQueryString(): (key: string) => string { export function parseQueryString(): (key: string) => string {
let qs = window.location.search.substring(1); let qs = window.location.search.substring(1);
let getQsVal = (key: string) => decodeURIComponent((qs.split(`${key}=`)[1] || "").split("&")[0] || "").replace(/\+/g, " "); let getQsVal = (key: string) => decodeURIComponent((qs.split(`${key}=`)[1] || "").split("&")[0] || ""); //.replace(/\+/g, " ");
return getQsVal; return getQsVal;
} }
} }