fix: Correct broken theme
All checks were successful
Build Docker / Build Image (push) Successful in 2m51s

This commit is contained in:
2025-10-31 14:12:47 +11:00
parent 5efab0e341
commit 0b7973d2b8
3 changed files with 7 additions and 1 deletions

View File

@@ -35,6 +35,12 @@ function toggle() {
window.getPreferredTheme = () => {
const storedTheme = window.getStoredTheme()
if (storedTheme) {
// Validate stored theme - if invalid, remove it
if (storedTheme !== 'light' && storedTheme !== 'dark') {
localStorage.removeItem('theme')
location.reload()
return
}
return storedTheme
}