diff options
author | Sam Potts <sam@potts.es> | 2020-08-30 16:10:15 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2020-08-30 16:10:25 +1000 |
commit | 18b3f23c694b9b3154788fa0f612621be8618a2b (patch) | |
tree | 3d0cf5a9ccd7f3082ac6b1b58480e135a6f18237 /src/js/utils/style.js | |
parent | 11e48b018157ac75f1db1cc433b7067a3d6ab522 (diff) | |
download | plyr-18b3f23c694b9b3154788fa0f612621be8618a2b.tar.lz plyr-18b3f23c694b9b3154788fa0f612621be8618a2b.tar.xz plyr-18b3f23c694b9b3154788fa0f612621be8618a2b.zip |
chore: update packages and linting
Diffstat (limited to 'src/js/utils/style.js')
-rw-r--r-- | src/js/utils/style.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/utils/style.js b/src/js/utils/style.js index aa57505e..f02b0ba5 100644 --- a/src/js/utils/style.js +++ b/src/js/utils/style.js @@ -27,7 +27,7 @@ export function reduceAspectRatio(ratio) { } export function getAspectRatio(input) { - const parse = ratio => (validateRatio(ratio) ? ratio.split(':').map(Number) : null); + const parse = (ratio) => (validateRatio(ratio) ? ratio.split(':').map(Number) : null); // Try provided ratio let ratio = parse(input); @@ -68,7 +68,7 @@ export function setAspectRatio(input) { const height = (100 / this.media.offsetWidth) * parseInt(window.getComputedStyle(this.media).paddingBottom, 10); const offset = (height - padding) / (height / 50); - if(this.fullscreen.active) { + if (this.fullscreen.active) { wrapper.style.paddingBottom = null; } else { this.media.style.transform = `translateY(-${offset}%)`; |