mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2026-03-12 21:22:57 -07:00
fix expandables on index
This commit is contained in:
@@ -35,10 +35,8 @@ class MDBookSidebarScrollbox extends HTMLElement {
|
|||||||
parent.classList.add("expanded");
|
parent.classList.add("expanded");
|
||||||
}
|
}
|
||||||
while (parent) {
|
while (parent) {
|
||||||
if (parent.tagName === "LI" && parent.previousElementSibling) {
|
if (parent.tagName === "LI" && parent.classList.contains("chapter-item")) {
|
||||||
if (parent.previousElementSibling.classList.contains("chapter-item")) {
|
parent.classList.add("expanded");
|
||||||
parent.previousElementSibling.classList.add("expanded");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
parent = parent.parentElement;
|
parent = parent.parentElement;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user