FIX: Reload graph after a theme change - comment updated

This commit is contained in:
Marc 2024-08-31 16:53:04 +02:00
parent f4cbd1f703
commit bd67a5841b

View File

@ -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