aboutsummaryrefslogtreecommitdiffstats
path: root/dist/plyr.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/plyr.js')
-rw-r--r--dist/plyr.js16
1 files changed, 6 insertions, 10 deletions
diff --git a/dist/plyr.js b/dist/plyr.js
index ef4eaa87..f1c3911a 100644
--- a/dist/plyr.js
+++ b/dist/plyr.js
@@ -3997,11 +3997,9 @@ typeof navigator === "object" && (function (global, factory) {
}
// If there's a play button, set label
- if (is.nodeList(this.elements.buttons.play)) {
- Array.from(this.elements.buttons.play).forEach(function (button) {
- button.setAttribute('aria-label', label);
- });
- }
+ Array.from(this.elements.buttons.play || []).forEach(function (button) {
+ button.setAttribute('aria-label', label);
+ });
// Set iframe title
// https://github.com/sampotts/plyr/issues/124
@@ -4081,11 +4079,9 @@ typeof navigator === "object" && (function (global, factory) {
toggleClass(this.elements.container, this.config.classNames.stopped, this.stopped);
// Set state
- if (is.nodeList(this.elements.buttons.play)) {
- Array.from(this.elements.buttons.play).forEach(function (target) {
- target.pressed = _this3.playing;
- });
- }
+ 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') {