mirror of https://github.com/docker/docs.git
fix: only add toc eventlistener if toc exists
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
1fb862bcf9
commit
c27e60b369
|
@ -1,4 +1,4 @@
|
|||
const toc = document.querySelector("#TableOfContents");
|
||||
const toc = document.querySelector("#TableOfContents .toc");
|
||||
const headings = document.querySelectorAll("main article h2, main article h3");
|
||||
|
||||
if (toc) {
|
||||
|
|
Loading…
Reference in New Issue