From e002e763faf823774123bec4b9337eddbbb8238e Mon Sep 17 00:00:00 2001 From: = Date: Tue, 22 Oct 2024 07:34:31 -0600 Subject: [PATCH] Added check for blank default on load --- index.html | 2 +- themes-v6/{themes-v5.js => themes-v6.js} | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) rename themes-v6/{themes-v5.js => themes-v6.js} (98%) diff --git a/index.html b/index.html index 255126a..5c966ec 100755 --- a/index.html +++ b/index.html @@ -869,7 +869,7 @@

Sanity Overlay

document.getElementById("maps_box").style.left = "-388px"; } - + diff --git a/themes-v6/themes-v5.js b/themes-v6/themes-v6.js similarity index 98% rename from themes-v6/themes-v5.js rename to themes-v6/themes-v6.js index dea5ab6..631a0a6 100644 --- a/themes-v6/themes-v5.js +++ b/themes-v6/themes-v6.js @@ -47,6 +47,10 @@ function changeTheme(name = null){ ] let theme_name = name != null ? name : $("#theme").val() + if(themes[theme_name] == undefined){ + theme_name = "Default" + document.getElementById("theme").value = "Default" + } clearInterval(light_interval) $(".ghost_card").removeClass("c-light-div")