This commit is contained in:
Sam Potts
2020-04-28 23:17:54 +10:00
parent a58b8bf4bb
commit adb3f35920
26 changed files with 160 additions and 152 deletions

View File

@ -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));