Fix async/await
This commit is contained in:
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;
|
||||
|
Reference in New Issue
Block a user