mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
fix: only add toc eventlistener if toc exists
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user