Merge branch 'master' into scan-hotfixes

This commit is contained in:
Georges-Antoine Assi
2023-12-12 09:18:42 -08:00

View File

@@ -9,7 +9,7 @@ const mediaMatch = window.matchMedia("(prefers-color-scheme: dark)");
function getTheme() {
const storedTheme = parseInt(localStorage.getItem("settings.theme"));
if (storedTheme !== null && storedTheme !== autoThemeKey) {
if (!isNaN(storedTheme) && storedTheme !== autoThemeKey) {
return themes[storedTheme];
}