Last active
July 25, 2022 06:56
-
-
Save bryceadams/c998254dcb8a5a11ef7d5c1879e519f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (color_mode == 'dark') { | |
document.body.classList.add('dark'); | |
document.documentElement.classList.add('dark'); | |
} else { | |
document.body.classList.remove('dark'); | |
document.documentElement.classList.remove('dark'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment