From 4e7ae53cbee8bc9df4324a9de1e8f40bc2072919 Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 3 May 2022 14:14:13 +0200 Subject: [PATCH] fixed custom theme loading from url not working --- frontend/src/ts/utils/url-handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/ts/utils/url-handler.ts b/frontend/src/ts/utils/url-handler.ts index 3df472679..577e7715f 100644 --- a/frontend/src/ts/utils/url-handler.ts +++ b/frontend/src/ts/utils/url-handler.ts @@ -15,9 +15,9 @@ export function loadCustomThemeFromUrl(): void { const base64decoded = JSON.parse(atob(getValue) ?? ""); let colorArray = []; - if (Array.isArray(urlEncoded) && urlEncoded.length === 9) { + if (Array.isArray(urlEncoded) && urlEncoded.length === 10) { colorArray = urlEncoded; - } else if (Array.isArray(base64decoded) && base64decoded.length === 9) { + } else if (Array.isArray(base64decoded) && base64decoded.length === 10) { colorArray = base64decoded; }