mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 04:03:48 +01:00
chore: add toggleEl type (#256)
This commit is contained in:
parent
be2defe8fb
commit
46908815fc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue