Remove debugging console statements

This commit is contained in:
Pieter Vander Vennet 2020-12-18 12:14:31 +01:00
parent 56c53df1dc
commit 76b83acf01

View file

@ -17,8 +17,7 @@ export default class InstalledThemes {
static InstalledThemes(osmConnection: OsmConnection) : UIEventSource<{ layout: LayoutConfig; definition: string }[]>{ static InstalledThemes(osmConnection: OsmConnection) : UIEventSource<{ layout: LayoutConfig; definition: string }[]>{
return osmConnection.preferencesHandler.preferences.map<{ layout: LayoutConfig, definition: string }[]>(allPreferences => { return osmConnection.preferencesHandler.preferences.map<{ layout: LayoutConfig, definition: string }[]>(allPreferences => {
const installedThemes: { layout: LayoutConfig, definition: string }[] = []; const installedThemes: { layout: LayoutConfig, definition: string }[] = [];
console.log("UPdating the installed themes") console.log("Updating the installed themes")
console.log("All preferences are ",allPreferences)
if (allPreferences === undefined) { if (allPreferences === undefined) {
console.log("All prefs is undefined"); console.log("All prefs is undefined");
return installedThemes; return installedThemes;
@ -35,7 +34,6 @@ export default class InstalledThemes {
} }
try { try {
var json = atob(customLayout.data); var json = atob(customLayout.data);
console.log(json);
const layout = new LayoutConfig( const layout = new LayoutConfig(
JSON.parse(json)); JSON.parse(json));
installedThemes.push({ installedThemes.push({