mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-29 03:20:46 +08:00
fixed custom theme loading from url not working
This commit is contained in:
parent
68a3724066
commit
4e7ae53cbe
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue