From 8a54edc31488bb7b3bfa10b1d53a086e96c6391c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Moreira?= Date: Thu, 14 Dec 2023 19:47:09 +0100 Subject: [PATCH] use "new" --- 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 e294128..4f17d1f 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`); - bootstrap.ScrollSpy(body, { + new bootstrap.ScrollSpy(body, { offset: offsetValue }) }