Stabilize URL

This commit is contained in:
Pieter Vander Vennet 2020-10-17 03:56:08 +02:00
parent 9356001a95
commit 178b30542c

View file

@ -27,9 +27,9 @@ export class QueryParameters {
const params = window.location.search.substr(1).split("&"); const params = window.location.search.substr(1).split("&");
for (const param of params) { for (const param of params) {
const kv = param.split("="); const kv = param.split("=");
const key = kv[0]; const key = decodeURIComponent(kv[0]);
QueryParameters.addOrder(key) QueryParameters.addOrder(key)
const v = kv[1]; const v = decodeURIComponent(kv[1]);
const source = new UIEventSource<string>(v); const source = new UIEventSource<string>(v);
source.addCallback(() => QueryParameters.Serialize()) source.addCallback(() => QueryParameters.Serialize())
QueryParameters.knownSources[key] = source; QueryParameters.knownSources[key] = source;