From 19990b507ec0b819b3f24c3b683669b13c297e1d Mon Sep 17 00:00:00 2001 From: Valentin Silyutin Date: Wed, 12 Nov 2025 20:11:07 +0400 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D1=8C=20=D0=BD=D0=B5=20=D1=83=D0=BA=D0=B0?= =?UTF-8?q?=D0=B7=D1=8B=D0=B2=D0=B0=D1=82=D1=8C=20Navigation/Pagination=20?= =?UTF-8?q?=D0=B2=20swiper.modules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index b1e4c9d..f4e18b2 100644 --- a/index.js +++ b/index.js @@ -342,7 +342,11 @@ const init = async (items = [], options = {}, index = 0) => { const swiper = new Swiper( gallery.querySelector('.advdominion-lg__container'), - Object.assign({ modules: [Navigation, Pagination], init: false, initialSlide: index }, options.swiper), + Object.assign({ + modules: [...new Set([Navigation, Pagination, ...(options.swiper?.modules || [])])], + init: false, + initialSlide: index + }, options.swiper), ); swiper.on('init', function () {