Skip to content

Commit

Permalink
Merge pull request #83 from cloudinary/fix/ie11-compatibility
Browse files Browse the repository at this point in the history
Fix/ie11 compatibility
  • Loading branch information
tsi authored Apr 3, 2019
2 parents 32915bd + 39b24c6 commit 04f53a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/plugins/cloudinary/components/cloudinary-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class CloudinaryButton extends ClickableComponent {
const display = this.options_.playerOptions.showLogo ? 'block' : 'none';
let bgIcon = '';
if (!this.options_.playerOptions.logoImageUrl) {
let clasess = this.options_.playerOptions.class.split(' ');
bgIcon = (clasess.includes('cld-video-player-skin-light')) ? LIGHT_BG_ICON : DARK_BG_ICON;
let classes = this.options_.playerOptions.class.split(' ');
bgIcon = (classes.indexOf('cld-video-player-skin-light') > -1) ? LIGHT_BG_ICON : DARK_BG_ICON;
} else {
bgIcon = this.options_.playerOptions.logoImageUrl;
}
Expand Down
3 changes: 1 addition & 2 deletions src/plugins/cloudinary/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,12 @@ class CloudinaryContext extends mixin(Playlistable) {
options.poster = options.poster || posterOptionsForCurrent();
options.queryParams = options.usageReport ? { _s: `vp-${VERSION}` } : {};

if (options.sourceTypes.includes('audio')) {
if (options.sourceTypes.indexOf('audio') > -1) {
builtSrc = new AudioSource(publicId, options);
} else {
builtSrc = new VideoSource(publicId, options);
}


return builtSrc;
};

Expand Down

0 comments on commit 04f53a3

Please sign in to comment.