summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/assets/js/theme-toggle.js
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-15 21:46:40 +0200
committerDanilo M. <danix@danix.xyz>2026-04-15 21:46:40 +0200
commit68afb3e96391ca5dea8c46764cf6bd8a33c9ebd7 (patch)
treec8e9d8433f693f51e9be9597532a546f9f78c3a0 /themes/danix-xyz-hacker/assets/js/theme-toggle.js
parent9934e042c1e97765ac839f6c3f06d30f02b5d9d0 (diff)
downloaddanixxyz-68afb3e96391ca5dea8c46764cf6bd8a33c9ebd7.tar.gz
danixxyz-68afb3e96391ca5dea8c46764cf6bd8a33c9ebd7.zip
Fix theme toggle icon state sync on page navigation
The Alpine.js state was reading from localStorage instead of the actual class on the html element, causing the icon to be out of sync with the actual theme. Now we initialize the Alpine state by checking the current html classList, which is set by the page-load script in baseof.html. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/assets/js/theme-toggle.js')
0 files changed, 0 insertions, 0 deletions