We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6049a86 + 7cf71d1 commit 5dae39aCopy full SHA for 5dae39a
toc.js
@@ -3,7 +3,7 @@ var TOCContainer = require("./toc-container-control");
3
var el = document.getElementsByClassName("on-this-page-container");
4
5
if (el.length) {
6
- new TOCContainer(el);
+ new TOCContainer(el.item(0));
7
} else {
8
console.log("An element with class 'on-this-page-container' is required");
9
}
0 commit comments