Add input validation

This commit is contained in:
Pieter Vander Vennet 2020-07-23 17:32:18 +02:00
parent ef593654f4
commit 1488caf362
8 changed files with 66 additions and 17 deletions

View file

@ -5,11 +5,12 @@ import {UIEventSource} from "../UI/UIEventSource";
export class QueryParameters {
private static order: string [] = ["layout","test","zoom","lat","lon"];
private static order: string [] = ["layout","test","z","lat","lon"];
private static knownSources = QueryParameters.init();
private static addOrder(key){
if(this.order.indexOf(key) < 0){
console.log("Adding order", key)
this.order.push(key)
}
}