fix(graph): make graph non-singleton, proper cleanup, fix radial
This commit is contained in:
parent
8d33608808
commit
23df17233d
5 changed files with 84 additions and 46 deletions
|
@ -25,7 +25,7 @@ function toggleToc(this: HTMLElement) {
|
|||
}
|
||||
|
||||
function setupToc() {
|
||||
for (const toc of document.querySelectorAll(".toc")) {
|
||||
for (const toc of document.getElementsByClassName("toc")) {
|
||||
const button = toc.querySelector(".toc-header")
|
||||
const content = toc.querySelector(".toc-content")
|
||||
if (!button || !content) return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue