diff options
author | Sam Potts <sam@potts.es> | 2020-08-30 15:47:25 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-30 15:47:25 +1000 |
commit | 3a07669e308b08d93ccaeee9affe2267788df1f7 (patch) | |
tree | a2b5bfa061d9d1f01675245dcfc04a5fb51fc3d5 | |
parent | b3d390076b599e0e2d7253191ed539f26ae3fded (diff) | |
parent | 4c1ae8f3ce38aa1b34cd6ab95267a7edf8c41ade (diff) | |
download | plyr-3a07669e308b08d93ccaeee9affe2267788df1f7.tar.lz plyr-3a07669e308b08d93ccaeee9affe2267788df1f7.tar.xz plyr-3a07669e308b08d93ccaeee9affe2267788df1f7.zip |
Merge pull request #1916 from syedhusain-appspace/develop
Check if key is a string before attempt --plyr checking
-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 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)); |