diff options
author | Sam Potts <sam@potts.es> | 2020-04-19 20:06:58 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2020-04-19 20:06:58 +1000 |
commit | 145f2ae24fc2177cd4b778ccdb9f7a6c46c3ba60 (patch) | |
tree | 580c1da16d63cbf1fcd2ea3065012fdfff810684 /src/js/ui.js | |
parent | 9c7e429b48320f6b021baa2ed23e35a6bd9ceae5 (diff) | |
download | plyr-145f2ae24fc2177cd4b778ccdb9f7a6c46c3ba60.tar.lz plyr-145f2ae24fc2177cd4b778ccdb9f7a6c46c3ba60.tar.xz plyr-145f2ae24fc2177cd4b778ccdb9f7a6c46c3ba60.zip |
Poster image fix (fixes #1763)
Diffstat (limited to 'src/js/ui.js')
-rw-r--r-- | src/js/ui.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/js/ui.js b/src/js/ui.js index 99faa9b8..c7553c72 100644 --- a/src/js/ui.js +++ b/src/js/ui.js @@ -170,12 +170,7 @@ const ui = { } // Set property synchronously to respect the call order - this.media.setAttribute('poster', poster); - - // HTML5 uses native poster attribute - if (this.isHTML5) { - return Promise.resolve(poster); - } + this.media.setAttribute('data-poster', poster); // Wait until ui is ready return ( |