Scroll to FAQ heading, not body

This commit is contained in:
Pk11 2021-06-17 23:19:07 -05:00
parent f9c6125579
commit 4dea714552

View File

@ -19,6 +19,6 @@ if(urlFaq) {
faq = Array.from(document.getElementById("faq-container").children).filter(r => r.children[0].id == `faq-${urlFaq}`)[0];
if(faq) {
faq.children[0].click();
faq.children[2].scrollIntoView();
faq.children[1].scrollIntoView();
}
}