aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSyed Husain <syed.husain@appspace.com>2020-07-30 19:43:04 +0800
committerSyed Husain <syed.husain@appspace.com>2020-07-30 19:43:04 +0800
commit4c1ae8f3ce38aa1b34cd6ab95267a7edf8c41ade (patch)
tree406cade4d2e905e684fa44e728ee10499c124b32 /src
parent423b7b276f1572eb666de32094a9aacd32e87d18 (diff)
downloadplyr-4c1ae8f3ce38aa1b34cd6ab95267a7edf8c41ade.tar.lz
plyr-4c1ae8f3ce38aa1b34cd6ab95267a7edf8c41ade.tar.xz
plyr-4c1ae8f3ce38aa1b34cd6ab95267a7edf8c41ade.zip
Check if key is a string before attempt --plyr checking
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));