Commit Graph

4 Commits

Author SHA1 Message Date
snowfudge
e4404fab60 fix: check theme toggle exists before binding
Prevents an error in the console when the theme toggle button isn't present on the page (e.g. on the onboarding / welcome screen, etc.)
2025-07-14 20:55:42 +07:00
fireph
3c3a342111 cleaner way to do it with dark class 2025-06-04 06:03:32 -07:00
fireph
5a78e8bfae Fix dark mode toggle
The dark mode toggle would sometimes not work on load (going back and forth on the pages makes it happen pretty often). This fixes the issue by leveraging the hx-on:load and hx-on:click to call the javascript functions. This eliminates the issue with the click listener not working right with the content being swapped.
2025-06-04 06:03:32 -07:00
Matthieu B
4db5c9d547 Dark mode switch 2023-02-23 12:02:43 +00:00