Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After clearing localstorage, theme always defaults to dark #1

Open
djmtype opened this issue Dec 17, 2023 · 0 comments
Open

After clearing localstorage, theme always defaults to dark #1

djmtype opened this issue Dec 17, 2023 · 0 comments

Comments

@djmtype
Copy link

djmtype commented Dec 17, 2023

For some reason the dark mode remains even after local storage is cleared.

Here are the steps I tried to reproduce.

  1. Set my OS theme to light
  2. Cleared my browser's local storage
  3. Visited the page again, and pressed enter on the keyboard
  4. Also tried refreshing the browser page

It seems the _x_darkMode still remains as true. If the local storage is empty, it should inherit the operating system's settings, correct?

I tested on Chrome and Firefox.

@djmtype djmtype changed the title After clearing localstorage, theme defaults to dark After clearing localstorage, theme always defaults to dark Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant