diff --git a/src/domain/globals.ts b/src/domain/globals.ts index cf50b00..07c9ffa 100644 --- a/src/domain/globals.ts +++ b/src/domain/globals.ts @@ -58,17 +58,14 @@ export class Globals { `Error: Language code '${layout.code}' cannot be registered for layout '${layout.prettyName}' because it is already registered for layout '${element.prettyName}'!` ); - console.log("globals.ts", "REJECTING LAYOUT", layout.code, Globals.layouts); return true; } return false; } ); if (available) { - console.log("globals.ts", "registering layout", layout.code, layout); Globals.layouts.push(layout); - } else { - console.log("globals.ts", "NOT registering layout", layout.code, layout); + Globals.layouts.sort((a, b) => a.prettyName.localeCompare(b.prettyName)); } } diff --git a/src/renderer.ts b/src/renderer.ts index fa0e3cb..9feed0d 100644 --- a/src/renderer.ts +++ b/src/renderer.ts @@ -244,7 +244,6 @@ class UhrRendererV2Delegate { } this.parseTimeDefinition(letters, 'minute', this.layout.minutes); this.parseTimeDefinition(letters, 'hour', this.layout.hours); - console.log("renderer.ts", "parsed layout", this.layout.code, this.layout, letters); return letters; }; @@ -295,7 +294,6 @@ export class UhrRenderer { if (this.layout.version === 2) { const delegate: UhrRendererV2Delegate = new UhrRendererV2Delegate(this.layout); const parsedLayout: Letter[][] = delegate.parse(); - console.log("renderer.ts", "got parsed layout", parsedLayout); Object.defineProperty(this.layout, "parsed", { "value": parsedLayout, "writable": false,