Merge pull request #617 from oemueller/patch-1

[bugfix] target is null exception
This commit is contained in:
Sam Potts 2017-11-04 22:17:00 +11:00 committed by GitHub
commit e44e93c117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2980,11 +2980,13 @@
target = plyr.buttons[play ? "pause" : "play"];
// Get the last play button to account for the large play button
if (target && target.length > 1) {
if (target) {
if (target.length > 1) {
target = target[target.length - 1];
} else {
target = target[0];
}
}
// Setup focus and tab focus
if (target) {