chore: add toggleEl type (#256)

This commit is contained in:
WingLim 2021-07-06 18:25:27 +08:00 committed by GitHub
parent be2defe8fb
commit 46908815fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ class StackColorScheme {
localStorage.setItem(this.localStorageKey, this.currentScheme); localStorage.setItem(this.localStorageKey, this.currentScheme);
} }
private bindClick(toggleEl) { private bindClick(toggleEl: HTMLElement) {
toggleEl.addEventListener('click', (e) => { toggleEl.addEventListener('click', (e) => {
if (this.isDark()) { if (this.isDark()) {
/// Disable dark mode /// Disable dark mode