aboutsummaryrefslogtreecommitdiffstats
path: root/dist/plyr.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-06-19 09:14:10 +1000
committerSam Potts <sam@potts.es>2018-06-19 09:14:10 +1000
commitc45f428f616aeff04deb25515a1bf97224294a24 (patch)
tree47de1617fa1302f4399197b5ed042075c5675eaf /dist/plyr.js
parentb61ba02f3dbed71f595188d69441132972767eb0 (diff)
downloadplyr-c45f428f616aeff04deb25515a1bf97224294a24.tar.lz
plyr-c45f428f616aeff04deb25515a1bf97224294a24.tar.xz
plyr-c45f428f616aeff04deb25515a1bf97224294a24.zip
Built files
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') {