diff options
author | WingLim <643089849@qq.com> | 2021-07-06 13:25:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-06 13:25:27 +0300 |
commit | 46908815fcd6fa343047f740d0b2c7fd0b9f5745 (patch) | |
tree | 96850933bd265d334b05606c17c6eded5d437abf | |
parent | be2defe8fb5a37e4de71f11cfd665d63708c34a3 (diff) |
chore: add toggleEl type (#256)
-rw-r--r-- | assets/ts/colorScheme.ts | 2 |
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 |