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

fix: update theme toggle icon on page load #25

Merged
merged 3 commits into from
Aug 12, 2023

Conversation

mrtnvgr
Copy link
Contributor

@mrtnvgr mrtnvgr commented Aug 12, 2023

No description provided.

Copy link
Owner

@isunjn isunjn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this after line 6 will do:

if (localStorage.getItem("theme") == "dark") toggleTheme("dark");

@mrtnvgr mrtnvgr requested a review from isunjn August 12, 2023 14:06
static/js/main.js Outdated Show resolved Hide resolved
templates/_base.html Outdated Show resolved Hide resolved
@isunjn isunjn merged commit 7036d6f into isunjn:main Aug 12, 2023
@mrtnvgr mrtnvgr deleted the fix-theme-toggler branch August 12, 2023 14:49
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