Prettier for JS

This commit is contained in:
Valentin Silytuin 2025-01-21 15:43:11 +04:00
parent 6eba60b7cb
commit fc74787b78
1 changed files with 6 additions and 6 deletions

View File

@ -244,7 +244,7 @@ const init = async (items = [], options = {}, index = 0) => {
${options.navigation || ''} ${options.navigation || ''}
</div> </div>
</div> </div>
` `,
); );
const gallery = document.body.querySelector('.advdominion-lg'); const gallery = document.body.querySelector('.advdominion-lg');
@ -257,7 +257,7 @@ const init = async (items = [], options = {}, index = 0) => {
const swiper = new Swiper( const swiper = new Swiper(
gallery.querySelector('.advdominion-lg__container'), gallery.querySelector('.advdominion-lg__container'),
Object.assign({modules: [Navigation, Pagination], init: false, initialSlide: index}, options.swiper) Object.assign({ modules: [Navigation, Pagination], init: false, initialSlide: index }, options.swiper),
); );
swiper.on('init', function () { swiper.on('init', function () {
@ -304,7 +304,7 @@ const init = async (items = [], options = {}, index = 0) => {
}, },
{ {
once: true, once: true,
} },
); );
}; };