diff --git a/index.js b/index.js index cb81385..a4ff9c2 100644 --- a/index.js +++ b/index.js @@ -342,7 +342,7 @@ const init = async (items = [], options = {}, index = 0) => { playVideo(this.slides[this.activeIndex]); } - if (isVideoInGallery.yt || isVideoInGallery.vk) { + if (isVideoInGallery.yt || isVideoInGallery.vk || isVideoInGallery.rt) { setVideoSize(gallery); } }); @@ -360,7 +360,7 @@ const init = async (items = [], options = {}, index = 0) => { }); swiper.on('resize', function () { - if (isVideoInGallery.yt || isVideoInGallery.vk) { + if (isVideoInGallery.yt || isVideoInGallery.vk || isVideoInGallery.rt) { setVideoSize(gallery); } });