From ed7a10973652c5e5dbf699b0f76afc7a4b8c21be Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Thu, 27 Jan 2022 20:37:22 +0100 Subject: [PATCH] Fix custom themes --- Logic/DetermineLayout.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Logic/DetermineLayout.ts b/Logic/DetermineLayout.ts index bc1e2794d..7111ee9aa 100644 --- a/Logic/DetermineLayout.ts +++ b/Logic/DetermineLayout.ts @@ -134,8 +134,8 @@ export default class DetermineLayout { private static prepCustomTheme(json: any): LayoutConfigJson { const knownLayersDict = new Map() - for (const key in known_layers["default"]) { - const layer = known_layers["default"][key] + for (const key in known_layers.layers) { + const layer = known_layers.layers[key] knownLayersDict.set(layer.id, layer) } const converState = { @@ -159,6 +159,7 @@ export default class DetermineLayout { let parsed = await Utils.downloadJson(link) try { parsed.id = link; + console.log("Loaded remote link:", link) const layoutToUse = DetermineLayout.prepCustomTheme(parsed) return new LayoutConfig(layoutToUse, false) } catch (e) {