Refactor code structure for improved readability and maintainability

This commit is contained in:
CNCKitchen
2026-03-18 15:33:17 +01:00
parent 0600877849
commit 9b0995c22d
20 changed files with 104 additions and 21 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
// Apply saved theme before first paint to avoid flash
(function() {
const t = localStorage.getItem('stlt-theme');
if (t === 'light') document.documentElement.setAttribute('data-theme', 'light');
if (t !== 'dark') document.documentElement.setAttribute('data-theme', 'light');
})();
// Apply saved language before first paint to avoid flash
(function() {