fixed custom theme loading from url not working

This commit is contained in:
Miodec 2022-05-03 14:14:13 +02:00
parent 68a3724066
commit 4e7ae53cbe

View file

@ -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;
}