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

README: Fix snippet for dark mode switching #46

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

patrislav1
Copy link
Contributor

The hardcoded localStorage key does not work when the page is read through file:// - in that case the key is prefixed with the full file path (see index.ts and base.html). To find the proper key, we also have to use the prefix function here.

@fralau fralau merged commit a11288f into fralau:master Oct 12, 2021
@patrislav1 patrislav1 deleted the fix-material-darkmode branch October 12, 2021 10:11
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

Successfully merging this pull request may close these issues.

2 participants