diff options
Diffstat (limited to 'dist/plyr.js')
-rw-r--r-- | dist/plyr.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/plyr.js b/dist/plyr.js index cd809ace..c0811917 100644 --- a/dist/plyr.js +++ b/dist/plyr.js @@ -2943,7 +2943,7 @@ typeof navigator === "object" && (function (global, factory) { // Add pressed property to buttons if (!is.empty(this.elements.buttons)) { // Toggle classname when pressed property is set - Object.values(this.elements.buttons).forEach(function (button) { + Object.values(this.elements.buttons).filter(Boolean).forEach(function (button) { var className = _this10.config.classNames.controlPressed; Object.defineProperty(button, 'pressed', { enumerable: true, |