mirror of https://github.com/lxndrblz/anatole.git

Timothée Andres
19.07.2025 3683a0f2b6a0750f858afd4dd3e65bb9caf3ef5b
refs
author Timothée Andres <andres.timothee@gmail.com>
Saturday, April 19, 2025 11:07 +0200
committer GitHub <noreply@github.com>
Saturday, April 19, 2025 11:07 +0200
commit3683a0f2b6a0750f858afd4dd3e65bb9caf3ef5b
tree 0bfed55d8e5b7bebef89598a0831484e6baf058e tree | zip | gz
parent 5831d852d14e2184f4cd4d2d5b78725f7a0a497c view | diff
fix: theme switcher toggling incorrectly (#553)

Currently, when the theme is set to be either light or dark, and the browser's option is changed, it results in the theme being inverted with what is wanted (i.e. setting light theme results in dark theme, and vice versa).
With this change, the theme switcher works as expected.
1 files modified
33 ■■■■■ changed files
assets/js/anatole-theme-switcher.js 33 ●●●●● diff | view | raw | blame | history