diff --git a/js/adminbar-helper.js b/js/adminbar-helper.js index 209d961..e294128 100644 --- a/js/adminbar-helper.js +++ b/js/adminbar-helper.js @@ -58,7 +58,7 @@ if (toc) { const offsetValue = toolbarTotalHeight + 10; toc.css("top", `${offsetValue}px`); - var scrollSpy = new bootstrap.ScrollSpy(body, { + bootstrap.ScrollSpy(body, { offset: offsetValue }) }