mirror of
https://github.com/quartz-community/graph.git
synced 2026-07-22 02:50:25 +00:00
fix: re-render graph on mode change
This commit is contained in:
parent
27eb4dd71c
commit
3a1f4c2b0c
1 changed files with 8 additions and 0 deletions
|
|
@ -796,5 +796,13 @@ import {
|
|||
});
|
||||
document.addEventListener("nav", handleNav);
|
||||
document.addEventListener("render", handleNav);
|
||||
|
||||
function handleThemeChange() {
|
||||
renderLocal();
|
||||
if (anyGlobalGraphActive()) {
|
||||
showGlobalGraph();
|
||||
}
|
||||
}
|
||||
document.addEventListener("themechange", handleThemeChange);
|
||||
}
|
||||
})();
|
||||
|
|
|
|||
Loading…
Reference in a new issue