mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 16:17:25 +02:00
parent
46555d87e0
commit
63f99f10ab
3 changed files with 12 additions and 12 deletions
|
@ -21,7 +21,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
timer = setTimeout(function() {
|
||||
timer = setTimeout(function () {
|
||||
timer = null;
|
||||
var activeNavFound = false;
|
||||
var headings = findHeadings(); // toc nav anchors
|
||||
|
@ -75,7 +75,7 @@
|
|||
|
||||
document.addEventListener('scroll', onScroll);
|
||||
document.addEventListener('resize', onScroll);
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// Cache the headings once the page has fully loaded.
|
||||
headingsCache = findHeadings();
|
||||
onScroll();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue