Prevent error when verifying if play buttons exist
This commit is contained in:
parent
c7d28b09c0
commit
80cfabbaf9
@ -1351,7 +1351,7 @@
|
||||
}
|
||||
|
||||
// If there's a play button, set label
|
||||
if (plyr.supported.full && plyr.buttons.play) {
|
||||
if (plyr.supported.full && plyr.buttons && plyr.buttons.play) {
|
||||
for (var i = plyr.buttons.play.length - 1; i >= 0; i--) {
|
||||
plyr.buttons.play[i].setAttribute('aria-label', label);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user