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

Solarize/Normalize button text reset on window reload. #2

Open
jgansl opened this issue Mar 29, 2020 · 1 comment
Open

Solarize/Normalize button text reset on window reload. #2

jgansl opened this issue Mar 29, 2020 · 1 comment

Comments

@jgansl
Copy link

jgansl commented Mar 29, 2020

If you have it set to 'solarized' and reload the window, the text is 'solarize' when it should be 'normalize'.

@jgansl
Copy link
Author

jgansl commented Mar 29, 2020

Fix:

if (theme) {
body.classList.add(theme);
isSolar && body.classList.add("solar");
if (isSolar) {
solarButton.innerText = "Normalize";
solarButton.style.cssText = --bg-solar: white;;
}
}

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