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