From 61c091746e5df419e864bd37411b16cd131a02fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Moreira?= Date: Thu, 14 Dec 2023 19:41:19 +0100 Subject: [PATCH] Remove var declaration --- js/adminbar-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }) }