From 04e4ba769f343f894b8d1d56fd339e7ee110eec6 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sun, 14 Nov 2021 16:13:09 +0100 Subject: [PATCH] Add error mesage --- Logic/DetermineLayout.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Logic/DetermineLayout.ts b/Logic/DetermineLayout.ts index 872b5b3e95..b077c50427 100644 --- a/Logic/DetermineLayout.ts +++ b/Logic/DetermineLayout.ts @@ -23,7 +23,6 @@ export default class DetermineLayout { const layoutFromBase64 = decodeURIComponent(loadCustomThemeParam.data); if (layoutFromBase64.startsWith("http")) { - // The userLayout is actually an url const layout = await DetermineLayout.LoadRemoteTheme(layoutFromBase64) return [layout, undefined] } @@ -114,6 +113,7 @@ export default class DetermineLayout { if (hash === undefined || hash.length < 10) { DetermineLayout.ShowErrorOnCustomTheme("Could not load a theme from the hash", new FixedUiElement("Hash does not contain data")) } + this.ShowErrorOnCustomTheme("Could not parse the hash", new FixedUiElement(e)) return null; } }