You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
creates an event handler, which is not triggered at the begin, so few lines later the session storage is always set to light cause of undefined sessionPrefers
Describe the bug
The auto darkmode does not get the system darkmode, its always light.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
System dark mode leads to dark website
Additional context
I already fixed the problem in my case.
Line 38-40 in dark-mode.js
Type-on-Strap/assets/js/partials/dark-mode.js
Lines 38 to 40 in 6c9d166
creates an event handler, which is not triggered at the begin, so few lines later the session storage is always set to light cause of undefined
sessionPrefers
Type-on-Strap/assets/js/partials/dark-mode.js
Line 45 in 6c9d166
You can fix the issue by adding the line
before the event handler. (like here)
(I could have created a PR with the fix myself, but I couldn't get
gulp
to work for generating main.min.js a folder above it.)The text was updated successfully, but these errors were encountered: