From 2ae5eec336998bb804831957fa7e5888851b0ee8 Mon Sep 17 00:00:00 2001
From: tianheg <19855812775@163.com>
Date: Mon, 25 Jan 2021 19:34:49 +0000
Subject: [PATCH] fix word (#507)
---
CONTRIBUTORS.md | 1 +
assets/js/dark-mode.js | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 3498a30..9f5111a 100644
--- a/CONTRIBUTORS.md
+++ b/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)
diff --git a/assets/js/dark-mode.js b/assets/js/dark-mode.js
index 19ac15d..42ad9f8 100644
--- a/assets/js/dark-mode.js
+++ b/assets/js/dark-mode.js
@@ -2,7 +2,7 @@
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')) {
--
Gitblit v1.10.0