From bd67a5841b5274a231e9add3caf0da3773be7853 Mon Sep 17 00:00:00 2001 From: Marc Date: Sat, 31 Aug 2024 16:53:04 +0200 Subject: [PATCH] FIX: Reload graph after a theme change - comment updated --- quartz/components/scripts/graph.inline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/components/scripts/graph.inline.ts b/quartz/components/scripts/graph.inline.ts index dbec4be96..8adcdc56d 100644 --- a/quartz/components/scripts/graph.inline.ts +++ b/quartz/components/scripts/graph.inline.ts @@ -183,7 +183,7 @@ async function renderGraph(container: string, fullSlug: FullSlug) { "--bodyFont", ] as const - // Replace the color function with this + // Dynamic color function const color = (d: NodeData) => { const style = getComputedStyle(document.documentElement) const isCurrent = d.id === slug