From 75f2c7ec651a2bc9624ac9f62321ea4c8b03a116 Mon Sep 17 00:00:00 2001 From: legoraft Date: Sun, 31 May 2026 13:19:23 +0200 Subject: [PATCH] fix: fixed attributes on theme buttons --- static/js/theme-switcher.js | 2 +- templates/partials/header.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/static/js/theme-switcher.js b/static/js/theme-switcher.js index 31f42f3..bea4d12 100644 --- a/static/js/theme-switcher.js +++ b/static/js/theme-switcher.js @@ -8,7 +8,7 @@ if (savedTheme) { buttons.forEach(button => { button.addEventListener("click", () => { - const theme = button.getAttribute("theme"); + const theme = button.getAttribute("name"); root.setAttribute("css-theme", theme); localStorage.setItem("theme", theme); }); diff --git a/templates/partials/header.html b/templates/partials/header.html index 60f1f05..1a5deca 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -10,10 +10,10 @@
- - - - + + + +
-- 2.51.2