From 46908815fcd6fa343047f740d0b2c7fd0b9f5745 Mon Sep 17 00:00:00 2001 From: WingLim <643089849@qq.com> Date: Tue, 6 Jul 2021 18:25:27 +0800 Subject: [PATCH] chore: add toggleEl type (#256) --- assets/ts/colorScheme.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/ts/colorScheme.ts b/assets/ts/colorScheme.ts index acb33ee96..8cb8a2010 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