From 1d81d840cf3d9a8785bff478e37756de663d2971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Tue, 12 Nov 2024 16:48:53 +0100 Subject: [PATCH] Test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bruno Rybársky --- assets/script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/script.js b/assets/script.js index ce98b2e..873e89f 100644 --- a/assets/script.js +++ b/assets/script.js @@ -83,7 +83,7 @@ async function doAction(url, requestData, successMessage, failureMessage, silent async function doSlicks() { const elements = document.getElementsByClassName('sliderm'); - elements.forEach(function (element) { + Array.prototype.forEach.call(elements, function (element) { // Initialize the Slick carousel on each element const sliderm = new Sliderm('#' + element.id, { arrow: true, @@ -96,7 +96,6 @@ async function doSlicks() { spacing: 10, align: 'center', }); - }); }