From e6c7f610be675e510e9a8501cf96f323e61470ca Mon Sep 17 00:00:00 2001 From: Valentin Silyutin Date: Wed, 12 Nov 2025 20:26:01 +0400 Subject: [PATCH] Fix --- index.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index deb49c2..7651d97 100644 --- a/index.js +++ b/index.js @@ -350,14 +350,9 @@ const init = async (items = [], options = {}, index = 0) => { const swiper = new Swiper( gallery.querySelector('.advdominion-lg__container'), - Object.assign( - { - modules: [...new Set([Navigation, Pagination, ...(options.swiper?.modules || [])])], - init: false, - initialSlide: index, - }, - options.swiper, - ), + Object.assign({ init: false, initialSlide: index }, options.swiper, { + modules: [...new Set([Navigation, Pagination, ...(options.swiper?.modules || [])])], + }), ); swiper.on('init', function () {