aboutsummaryrefslogtreecommitdiffstats
path: root/dist/plyr.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/plyr.js')
-rw-r--r--dist/plyr.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/dist/plyr.js b/dist/plyr.js
index 66ea1d3f..6bbbad13 100644
--- a/dist/plyr.js
+++ b/dist/plyr.js
@@ -4074,9 +4074,11 @@ typeof navigator === "object" && (function (global, factory) {
toggleClass(this.elements.container, this.config.classNames.stopped, this.stopped);
// Set state
- Array.from(this.elements.buttons.play).forEach(function (target) {
- target.pressed = _this3.playing;
- });
+ if (is.nodeList(this.elements.buttons.play)) {
+ Array.from(this.elements.buttons.play).forEach(function (target) {
+ target.pressed = _this3.playing;
+ });
+ }
// Only update controls on non timeupdate events
if (is.event(event) && event.type === 'timeupdate') {