Fix global ToC js error in console

This commit is contained in:
Lucas Chaplain 2022-02-01 10:44:25 +01:00
parent 8306cc774c
commit cd7d744d9b

View file

@ -16,8 +16,10 @@ document.addEventListener("DOMContentLoaded", function() {
if (parentMenu.classList.contains('subMenu')) { // child
parentMenu.previousElementSibling.previousElementSibling.checked = false;
} else { // parent
activeDocPage.nextElementSibling.checked = false;
}
if (activeDocPage.nextElementSibling) {
activeDocPage.nextElementSibling.checked = false;
}
}
});
window.addEventListener('scroll', function() {