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', }); - }); }