From 5d8e06f5813f526d2747ff02c0733b09ec1ebec3 Mon Sep 17 00:00:00 2001 From: Valentin Silytuin Date: Tue, 20 Jun 2023 00:14:50 +0400 Subject: [PATCH] Fix async/await --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a0de192..f7aafa9 100644 --- a/index.js +++ b/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;