Remove debug output statements and sort layouts alphabetically (by prettyName).
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
708645f968
commit
f344cdb3f8
2 changed files with 1 additions and 6 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue