Merge pull request #275 from wilsonmsalberto/master

Prevent error when verifying if play buttons exist
This commit is contained in:
Sam Potts
2016-06-13 18:49:20 +01:00
committed by GitHub

View File

@ -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);
}