mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-07 13:22:54 +00:00
Merge branch 'main' into perf-docs-scroll-spy-io-10444847613200646363
This commit is contained in:
3 files changed
+53
-36
No files matched your search
Vendored
+1
@@ -322,6 +322,7 @@ function setupScrollSpy(container) {
|
||||
const headings = Array.from(
|
||||
container.querySelectorAll("h2[id], h3[id], h4[id], h5[id]")
|
||||
);
|
||||
console.log(`[Spy] setup found ${headings.length} headings`);
|
||||
if (headings.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user