mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
default theme in first setup fixed
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user