Merge pull request #1916 from syedhusain-appspace/develop
Check if key is a string before attempt --plyr checking
This commit is contained in:
		@ -270,7 +270,7 @@ const ui = {
 | 
				
			|||||||
    // Loop through values (as they are the keys when the object is spread 🤔)
 | 
					    // Loop through values (as they are the keys when the object is spread 🤔)
 | 
				
			||||||
    Object.values({ ...this.media.style })
 | 
					    Object.values({ ...this.media.style })
 | 
				
			||||||
      // We're only fussed about Plyr specific properties
 | 
					      // 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 => {
 | 
					      .forEach(key => {
 | 
				
			||||||
        // Set on the container
 | 
					        // Set on the container
 | 
				
			||||||
        this.elements.container.style.setProperty(key, this.media.style.getPropertyValue(key));
 | 
					        this.elements.container.style.setProperty(key, this.media.style.getPropertyValue(key));
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user