aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/ui.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-04-29 09:21:32 +1000
committerGitHub <noreply@github.com>2020-04-29 09:21:32 +1000
commitdda2d072aaaa2047a00cba82505965f89b20aee3 (patch)
treea98619b86ac317d12c24fa5aff16e42639832d1d /src/js/ui.js
parent4915cf0120870db4a52b3be117efa22f8ca2bd3e (diff)
parentadb3f359203e7e3e6dad06376f63630f3880fb8f (diff)
downloadplyr-dda2d072aaaa2047a00cba82505965f89b20aee3.tar.lz
plyr-dda2d072aaaa2047a00cba82505965f89b20aee3.tar.xz
plyr-dda2d072aaaa2047a00cba82505965f89b20aee3.zip
Merge pull request #1813 from sampotts/master
Merge back
Diffstat (limited to 'src/js/ui.js')
-rw-r--r--src/js/ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/ui.js b/src/js/ui.js
index c9ad7d90..d3d6fd69 100644
--- a/src/js/ui.js
+++ b/src/js/ui.js
@@ -270,7 +270,7 @@ const ui = {
// Loop through values (as they are the keys when the object is spread 🤔)
Object.values({ ...this.media.style })
// We're only fussed about Plyr specific properties
- .filter(key => key.startsWith('--plyr'))
+ .filter(key => !is.empty(key) && key.startsWith('--plyr'))
.forEach(key => {
// Set on the container
this.elements.container.style.setProperty(key, this.media.style.getPropertyValue(key));