Release v2.2.2

This commit is contained in:
2026-08-01 22:32:28 +01:00
parent d06da6fea2
commit a9d1d45d78
7 changed files with 272 additions and 9 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
(function () {
var storageKey = 'lte-theme';
var theme = 'auto';
var theme = 'dark';
function getPreferredTheme() {
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
@@ -15,10 +15,10 @@
try {
var storedTheme = window.localStorage.getItem(storageKey);
if (storedTheme === 'dark' || storedTheme === 'light' || storedTheme === 'auto') {
theme = storedTheme;
theme = storedTheme === 'auto' ? getPreferredTheme() : storedTheme;
}
} catch (error) {
theme = 'auto';
theme = 'dark';
}
document.documentElement.dataset.bsTheme = theme;