From 771c05ff1866a32e05fd5926317372405202d640 Mon Sep 17 00:00:00 2001
From: ARYAN TECHIE <76107940+Aryan-Techie@users.noreply.github.com>
Date: Tue, 22 Apr 2025 17:22:43 +0000
Subject: [PATCH] fix: dynamically detect current branch for quartz sync push (#1930)
---
quartz/components/scripts/darkmode.inline.ts | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/quartz/components/scripts/darkmode.inline.ts b/quartz/components/scripts/darkmode.inline.ts
index 871eb24..d8dfee9 100644
--- a/quartz/components/scripts/darkmode.inline.ts
+++ b/quartz/components/scripts/darkmode.inline.ts
@@ -10,7 +10,7 @@
}
document.addEventListener("nav", () => {
- const switchTheme = (e: Event) => {
+ const switchTheme = () => {
const newTheme =
document.documentElement.getAttribute("saved-theme") === "dark" ? "light" : "dark"
document.documentElement.setAttribute("saved-theme", newTheme)
--
Gitblit v1.10.0