Fix async/await
This commit is contained in:
parent
8e192ed604
commit
5d8e06f581
2
index.js
2
index.js
|
@ -97,7 +97,7 @@ const show = async (duration = 500, easing = 'linear') => {
|
|||
};
|
||||
|
||||
const init = async (items = [], options = {}, index = 0) => {
|
||||
const {Swiper, Navigation, Pagination} = import('swiper');
|
||||
const {Swiper, Navigation, Pagination} = await import('swiper');
|
||||
Swiper.use([Navigation, Pagination]);
|
||||
|
||||
let isVideoInGallery = false;
|
||||
|
|
Loading…
Reference in New Issue