Poster image fix (fixes #1763)

This commit is contained in:
Sam Potts
2020-04-19 20:06:58 +10:00
parent 9c7e429b48
commit 145f2ae24f
6 changed files with 12 additions and 20 deletions

View File

@ -38,14 +38,12 @@ const media = {
// Wrap the video in a container
wrap(this.media, this.elements.wrapper);
// Faux poster container
if (this.isEmbed) {
this.elements.poster = createElement('div', {
class: this.config.classNames.poster,
});
// Poster image container
this.elements.poster = createElement('div', {
class: this.config.classNames.poster,
});
this.elements.wrapper.appendChild(this.elements.poster);
}
this.elements.wrapper.appendChild(this.elements.poster);
}
if (this.isHTML5) {