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.
1 parent 6049a86 commit 7cf71d1Copy full SHA for 7cf71d1
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