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 gh-88 #96

Merged
merged 3 commits into from
Apr 1, 2024
Merged

Fix gh-88 #96

merged 3 commits into from
Apr 1, 2024

Conversation

RealFX-Code
Copy link
Contributor

@RealFX-Code RealFX-Code commented Mar 28, 2024

my code may be bad, but this works and fixes gh-88.


See preview on Cloudflare Pages: https://preview-96.developer-wiki.pages.dev

@ix0rai ix0rai added the enhancement New feature or request label Mar 29, 2024
Copy link
Member

@ix0rai ix0rai left a comment

Choose a reason for hiding this comment

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

thanks! I'd appreciate if you added a comment explaining the code adding darkreader-lock, just to be clear for future readers of the code

onMount(function () {
userPrefersDarkMode =
window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", (e) => {
Copy link
Member

Choose a reason for hiding this comment

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

incorrect indentation on this line for some reason

@RealFX-Code
Copy link
Contributor Author

thanks! I'd appreciate if you added a comment explaining the code adding darkreader-lock, just to be clear for future readers of the code

fixed

@ix0rai ix0rai merged commit 2c9728d into QuiltMC:main Apr 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

disable the dark reader extension when in dark mode
2 participants