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