aboutsummaryrefslogtreecommitdiffstats
path: root/dist/plyr.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/plyr.js')
-rw-r--r--dist/plyr.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/plyr.js b/dist/plyr.js
index 9877c8ca..6c6f460d 100644
--- a/dist/plyr.js
+++ b/dist/plyr.js
@@ -2959,8 +2959,8 @@ typeof navigator === "object" && (function (global, factory) {
// Toggle classname when pressed property is set
Object.values(this.elements.buttons).filter(Boolean).forEach(function (button) {
- if (is.array(button)) {
- button.filter(Boolean).forEach(addProperty);
+ if (is.array(button) || is.nodeList(button)) {
+ Array.from(button).filter(Boolean).forEach(addProperty);
} else {
addProperty(button);
}