aboutsummaryrefslogtreecommitdiffstats
path: root/dist/plyr.polyfilled.mjs
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-02-14 16:54:22 +0000
committerSam Potts <sam@potts.es>2020-02-14 16:54:22 +0000
commit442427ebd53175ed47cdaa22ffc47cd1d11f4c89 (patch)
tree05458f4c38564a7e83d5fa38e919b6bba612c25b /dist/plyr.polyfilled.mjs
parent7954c92c0be2e06db489c1bcd367377d61fd48cb (diff)
downloadplyr-442427ebd53175ed47cdaa22ffc47cd1d11f4c89.tar.lz
plyr-442427ebd53175ed47cdaa22ffc47cd1d11f4c89.tar.xz
plyr-442427ebd53175ed47cdaa22ffc47cd1d11f4c89.zip
v3.5.9
- Fix for regression with volume control width - Ensure poster image is not downloaded again for HTML5 videos
Diffstat (limited to 'dist/plyr.polyfilled.mjs')
-rw-r--r--dist/plyr.polyfilled.mjs7
1 files changed, 6 insertions, 1 deletions
diff --git a/dist/plyr.polyfilled.mjs b/dist/plyr.polyfilled.mjs
index 77c8d3fa..c15b9805 100644
--- a/dist/plyr.polyfilled.mjs
+++ b/dist/plyr.polyfilled.mjs
@@ -10780,7 +10780,12 @@ var ui = {
} // Set property synchronously to respect the call order
- this.media.setAttribute('poster', poster); // Wait until ui is ready
+ this.media.setAttribute('poster', poster); // HTML5 uses native poster attribute
+
+ if (this.isHTML5) {
+ return Promise.resolve(poster);
+ } // Wait until ui is ready
+
return ready.call(this) // Load image
.then(function () {