Stabilize URL
This commit is contained in:
parent
9356001a95
commit
178b30542c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue