mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 23:57:22 +02:00
parent
be3e7ba92f
commit
53874a044a
17 changed files with 40 additions and 40 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