Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronen-Michaeli-22 committed Mar 20, 2023
2 parents 48dc7fb + 94ca7b2 commit 884f4c4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cloudinary/cloudinary-magento2",
"description": "Cloudinary Magento 2 Integration.",
"type": "magento2-module",
"version": "1.19.4",
"version": "1.19.5",
"license": "MIT",
"require": {
"cloudinary/cloudinary_php": ">=2.7 <2.8.1",
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Cloudinary_Cloudinary" setup_version="1.19.4">
<module name="Cloudinary_Cloudinary" setup_version="1.19.5">
<sequence>
<module name="Magento_ProductVideo"/>
<module name="Magento_PageBuilder"/>
Expand Down
12 changes: 6 additions & 6 deletions view/frontend/web/js/fotorama-add-video-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ define(
closeVideo = this.fotoramaItem.find('.' + this.FTVC);
this._closeVideoSetEvents(closeVideo, fotorama);

if (isBase
&& this.options.videoData[fotorama.activeIndex].isBase
if (isBase
&& this.options.videoData[fotorama.activeIndex].isBase
&& $(window).width() > this.MobileMaxWidth
) {
this._showCloseVideo();
Expand Down Expand Up @@ -481,7 +481,7 @@ define(
key = allVideoDataKeys[i];
videoItem = allVideoData[key];

if (videoItem.mediaType === this.VID && videoItem.isBase
if (videoItem.mediaType === this.VID && videoItem.isBase
&& this.options.videoSettings[0].playIfBase && allowBase
) {
this.Base = true;
Expand All @@ -503,7 +503,7 @@ define(
scriptTag = document.getElementsByTagName('script')[0];

element.async = true;
element.src = 'https://f.vimeocdn.com/js/froogaloop2.min.js';
element.src = 'https://player.vimeo.com/api/player.js';

/**
* Vimeo js framework on load callback.
Expand Down Expand Up @@ -571,8 +571,8 @@ define(
elem.removeClass(this.TI);
}

if (this.options.videoData[i].mediaType === this.VID
&& fotorama.data[i].type === this.VID
if (this.options.videoData[i].mediaType === this.VID
&& fotorama.data[i].type === this.VID
&& fotorama.options.nav === 'thumbs'
) {
elem.addClass(this.TI);
Expand Down

0 comments on commit 884f4c4

Please sign in to comment.