Prettier for JS
This commit is contained in:
parent
8d1a9ce4f9
commit
6da85047a4
6
index.js
6
index.js
|
@ -242,7 +242,7 @@ const init = async (items = [], options = {}, index = 0) => {
|
|||
${options.navigation || ''}
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
);
|
||||
|
||||
const gallery = document.body.querySelector('.advdominion-lg');
|
||||
|
@ -255,7 +255,7 @@ const init = async (items = [], options = {}, index = 0) => {
|
|||
|
||||
const swiper = new Swiper(
|
||||
gallery.querySelector('.advdominion-lg__container'),
|
||||
Object.assign({init: false, initialSlide: index}, options.swiper)
|
||||
Object.assign({ init: false, initialSlide: index }, options.swiper),
|
||||
);
|
||||
|
||||
swiper.on('init', function () {
|
||||
|
@ -302,7 +302,7 @@ const init = async (items = [], options = {}, index = 0) => {
|
|||
},
|
||||
{
|
||||
once: true,
|
||||
}
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue