* fix word

* Update CONTRIBUTORS.md

add @tianheg (my name)
This commit is contained in:
tianheg
2021-01-26 03:34:49 +08:00
committed by GitHub
parent 1d4b612a44
commit 2ae5eec336
2 changed files with 2 additions and 1 deletions

View File

@@ -88,6 +88,7 @@
- [Arafat Hasan](https://github.com/arafat-hasan)
- [YUJI](https://yuji.ne.jp/)
- [JaeSang Yoo](https://github.com/JSYoo5B)
- [tianheg](https://github.com/tianheg)
- [Felix](https://github.com/lazyyz)
- [Peter Duchnovsky](https://pduchnovsky.com)
- [Alex Miranda](https://ammiranda.com)

View File

@@ -2,7 +2,7 @@ const body = document.body;
const darkModeToggle = document.getElementById('dark-mode-toggle');
const darkModeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
// Check if user preference is set, if not check value of body class for light or dark else it means that colorsheme = auto
// Check if user preference is set, if not check value of body class for light or dark else it means that colorscheme = auto
if (localStorage.getItem("colorscheme")) {
setTheme(localStorage.getItem("colorscheme"));
} else if (body.classList.contains('colorscheme-light') || body.classList.contains('colorscheme-dark')) {