aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-02-14 16:55:56 +0000
committerGitHub <noreply@github.com>2020-02-14 16:55:56 +0000
commit924049aa14414b5c4b06a6a2a7ac290e3f3a0f4b (patch)
tree05458f4c38564a7e83d5fa38e919b6bba612c25b /src/js
parent2e2c5ad72a00e9f85b11e29e0ead9f7c9db8ea5c (diff)
parent442427ebd53175ed47cdaa22ffc47cd1d11f4c89 (diff)
downloadplyr-924049aa14414b5c4b06a6a2a7ac290e3f3a0f4b.tar.lz
plyr-924049aa14414b5c4b06a6a2a7ac290e3f3a0f4b.tar.xz
plyr-924049aa14414b5c4b06a6a2a7ac290e3f3a0f4b.zip
Merge pull request #1691 from sampotts/develop
v3.5.9
Diffstat (limited to 'src/js')
-rw-r--r--src/js/ui.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/ui.js b/src/js/ui.js
index b443766b..32db6ae7 100644
--- a/src/js/ui.js
+++ b/src/js/ui.js
@@ -172,6 +172,11 @@ 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);
+ }
+
// Wait until ui is ready
return (
ready