Update theme-init.js

This commit is contained in:
Kosztyk 2026-01-11 23:45:36 +02:00 committed by GitHub
parent 928655cb95
commit 58fafe88bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@
} else { } else {
document.documentElement.removeAttribute("data-theme"); document.documentElement.removeAttribute("data-theme");
} }
} catch (_e) { } catch {
// If localStorage is blocked, just fall back to light theme // If localStorage is blocked, just fall back to light theme
document.documentElement.removeAttribute("data-theme"); document.documentElement.removeAttribute("data-theme");
} }