aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/ui.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2020-04-28 23:17:54 +1000
committerSam Potts <sam@potts.es>2020-04-28 23:17:54 +1000
commitadb3f359203e7e3e6dad06376f63630f3880fb8f (patch)
treea98619b86ac317d12c24fa5aff16e42639832d1d /src/js/ui.js
parenta58b8bf4bb8218f3828f9a7ae680807488324c01 (diff)
downloadplyr-adb3f359203e7e3e6dad06376f63630f3880fb8f.tar.lz
plyr-adb3f359203e7e3e6dad06376f63630f3880fb8f.tar.xz
plyr-adb3f359203e7e3e6dad06376f63630f3880fb8f.zip
v3.6.1
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));