Skip to content
Snippets Groups Projects
Commit b2ffc4b4 authored by Olivia206's avatar Olivia206
Browse files

fixed toc js

parent c92e5c9d
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ class TableOfContents {
return top
}
activateLink(id) {
const currentLink = this.element.querySelector(`[href*=${ id }]`);
const currentLink = this.element.querySelector(`[href*="${ id }"]`);
this.links.forEach((link, index) => {
if (link == currentLink) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment