aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 d3d6fd69..fd27e2bc 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 => !is.empty(key) && key.startsWith('--plyr'))
+ .filter(key => !is.empty(key) && is.string(key) && key.startsWith('--plyr'))
.forEach(key => {
// Set on the container
this.elements.container.style.setProperty(key, this.media.style.getPropertyValue(key));