Remove debug logging

This commit is contained in:
Pieter Vander Vennet 2021-06-08 17:23:05 +02:00
parent ebe3a8138a
commit de4c31902e

View file

@ -96,13 +96,11 @@ export class OsmPreferences {
}
public GetPreference(key: string, prefix: string = "mapcomplete-"): UIEventSource<string> {
console.warn(key)
key = prefix + key;
key = key.replace(/[:\\\/"' {}.%]/g, '')
if (key.length >= 255) {
throw "Preferences: key length to big";
}
console.warn(key)
if (this.preferenceSources[key] !== undefined) {
return this.preferenceSources[key];
}