aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/ui.js')
-rw-r--r--src/js/ui.js7
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 (