chore: add toggleEl type (#256)

This commit is contained in:
WingLim
2021-07-06 12:25:27 +02:00
committed by GitHub
parent be2defe8fb
commit 46908815fc
+1 -1
View File
@@ -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