Merge pull request #617 from oemueller/patch-1
[bugfix] target is null exception
This commit is contained in:
commit
e44e93c117
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user