Skip to content

Commit

Permalink
Upgrade video module
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinchoolur committed Sep 15, 2020
1 parent 9bd8ba2 commit 4605ca6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions demo/js/lg-video.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**!
* lg-video.js | 1.2.0 | May 20th 2020
* lg-video.js | 1.2.1 | September 15th 2020
* http://sachinchoolur.github.io/lg-video.js
* Copyright (c) 2016 Sachin N;
* @license GPLv3
Expand Down Expand Up @@ -270,12 +270,12 @@
videoTitle = this.core.s.dynamicEl[index].title;
} else {
videoTitle = this.core.items[index].getAttribute('title');
}

var firstImage = this.core.items[index].querySelector('img');

if (firstImage) {
videoTitle = videoTitle || firstImage.getAttribute('alt');
if (!videoTitle) {
var firstImage = this.core.items[index].querySelector('img');
if (firstImage) {
videoTitle = firstImage.getAttribute('alt');
}
}
}

videoTitle = videoTitle ? 'title="' + videoTitle + '"' : '';
Expand Down
4 changes: 2 additions & 2 deletions demo/js/lg-video.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4605ca6

Please sign in to comment.