aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/html5.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/html5.js')
-rw-r--r--src/js/html5.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/js/html5.js b/src/js/html5.js
index e538e922..b03e9c26 100644
--- a/src/js/html5.js
+++ b/src/js/html5.js
@@ -44,8 +44,10 @@ const html5 = {
const player = this;
- // Set aspect ratio if set
- setAspectRatio.call(player);
+ // Set aspect ratio if fixed
+ if (!is.empty(this.config.ratio)) {
+ setAspectRatio.call(player);
+ }
// Quality
Object.defineProperty(player.media, 'quality', {