Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWingLim <643089849@qq.com>2021-07-06 13:25:27 +0300
committerGitHub <noreply@github.com>2021-07-06 13:25:27 +0300
commit46908815fcd6fa343047f740d0b2c7fd0b9f5745 (patch)
tree96850933bd265d334b05606c17c6eded5d437abf
parentbe2defe8fb5a37e4de71f11cfd665d63708c34a3 (diff)
chore: add toggleEl type (#256)
-rw-r--r--assets/ts/colorScheme.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/ts/colorScheme.ts b/assets/ts/colorScheme.ts
index acb33ee..8cb8a20 100644
--- a/assets/ts/colorScheme.ts
+++ b/assets/ts/colorScheme.ts
@@ -22,7 +22,7 @@ class StackColorScheme {
localStorage.setItem(this.localStorageKey, this.currentScheme);
}
- private bindClick(toggleEl) {
+ private bindClick(toggleEl: HTMLElement) {
toggleEl.addEventListener('click', (e) => {
if (this.isDark()) {
/// Disable dark mode