mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 23:04:05 -06:00
Prettified to pass build checks.
This commit is contained in:
parent
a1b084a60e
commit
8d3dfafeef
@ -27,7 +27,7 @@ document.addEventListener("nav", () => {
|
|||||||
|
|
||||||
// Darkmode toggle
|
// Darkmode toggle
|
||||||
const themeButton = document.querySelector("#darkmode") as HTMLButtonElement
|
const themeButton = document.querySelector("#darkmode") as HTMLButtonElement
|
||||||
if(themeButton){
|
if (themeButton) {
|
||||||
themeButton.addEventListener("click", switchTheme)
|
themeButton.addEventListener("click", switchTheme)
|
||||||
window.addCleanup(() => themeButton.removeEventListener("click", switchTheme))
|
window.addCleanup(() => themeButton.removeEventListener("click", switchTheme))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user