From 3a1f4c2b0c2281251bb52d626452c5bf3036cd36 Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Tue, 26 May 2026 19:45:26 +0200 Subject: [PATCH] fix: re-render graph on mode change --- src/components/scripts/graph.inline.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/scripts/graph.inline.ts b/src/components/scripts/graph.inline.ts index c295633..3b2773e 100644 --- a/src/components/scripts/graph.inline.ts +++ b/src/components/scripts/graph.inline.ts @@ -796,5 +796,13 @@ import { }); document.addEventListener("nav", handleNav); document.addEventListener("render", handleNav); + + function handleThemeChange() { + renderLocal(); + if (anyGlobalGraphActive()) { + showGlobalGraph(); + } + } + document.addEventListener("themechange", handleThemeChange); } })();