Explorar o código

fix word (#507)

* fix word

* Update CONTRIBUTORS.md

add @tianheg (my name)
tianheg %!s(int64=4) %!d(string=hai) anos
pai
achega
2ae5eec336
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      CONTRIBUTORS.md
  2. 1 1
      assets/js/dark-mode.js

+ 1 - 0
CONTRIBUTORS.md

@@ -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)

+ 1 - 1
assets/js/dark-mode.js

@@ -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')) {