chore: add toggleEl type (#256)
This commit is contained in:
parent
be2defe8fb
commit
46908815fc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user