forked from MapComplete/MapComplete
Remove debug logging
This commit is contained in:
parent
ebe3a8138a
commit
de4c31902e
1 changed files with 0 additions and 2 deletions
|
@ -96,13 +96,11 @@ export class OsmPreferences {
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetPreference(key: string, prefix: string = "mapcomplete-"): UIEventSource<string> {
|
public GetPreference(key: string, prefix: string = "mapcomplete-"): UIEventSource<string> {
|
||||||
console.warn(key)
|
|
||||||
key = prefix + key;
|
key = prefix + key;
|
||||||
key = key.replace(/[:\\\/"' {}.%]/g, '')
|
key = key.replace(/[:\\\/"' {}.%]/g, '')
|
||||||
if (key.length >= 255) {
|
if (key.length >= 255) {
|
||||||
throw "Preferences: key length to big";
|
throw "Preferences: key length to big";
|
||||||
}
|
}
|
||||||
console.warn(key)
|
|
||||||
if (this.preferenceSources[key] !== undefined) {
|
if (this.preferenceSources[key] !== undefined) {
|
||||||
return this.preferenceSources[key];
|
return this.preferenceSources[key];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue