mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-29 00:31:09 +00:00
Attempt to fix syntax error for toc js
This commit is contained in:
parent
7397d8bba8
commit
c72c834fa2
|
@ -36,7 +36,7 @@ function ScrollSpy() {
|
|||
sections[section].offsetTop <= scrollPos
|
||||
) {
|
||||
id = mw.util.escapeIdForAttribute(sections[section].id);
|
||||
node = document.querySelector("a[href * = " + id + "]").parentNode;
|
||||
node = document.querySelector("a[href * = '" + id + "']").parentNode;
|
||||
active = document.querySelector(".active");
|
||||
if (active !== null) {
|
||||
active.classList.remove("active");
|
||||
|
|
Loading…
Reference in a new issue