fix word (#507)
* fix word
* Update CONTRIBUTORS.md
add @tianheg (my name)
| | |
| | | - [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) |
| | |
| | | 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')) { |