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
Bit of a context: I'm a heavy user of device preferences that changes by time of the day, and with the current helper once you've set a localStorage item, you're pretty much locked in and device preferences cannot affect it
I see that there's a code under // Old comment that do this stuff but it looks like is not playing well enough with the new one
I suggest some method like clearPreference
The text was updated successfully, but these errors were encountered:
Hi – The idea behind the current implementation is that no preference is saved in localStorage until the user presses the button. However I agree with what you said, there are cases where prefers-color-scheme is preferred.
A clearPreference method seems like a reasonable solution which I'll consider for the next release (feel free to make a PR), but any suggestion on how to improve Nightwind's default behaviour would also be appreciated
Bit of a context: I'm a heavy user of device preferences that changes by time of the day, and with the current helper once you've set a localStorage item, you're pretty much locked in and device preferences cannot affect it
I see that there's a code under
// Old
comment that do this stuff but it looks like is not playing well enough with the new oneI suggest some method like
clearPreference
The text was updated successfully, but these errors were encountered: