diff options
Diffstat (limited to 'src/js/ui.js')
-rw-r--r-- | src/js/ui.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/ui.js b/src/js/ui.js index f5868788..f882fc2b 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)); |