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"];
|
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) {
|
||||||
|
if (target.length > 1) {
|
||||||
target = target[target.length - 1];
|
target = target[target.length - 1];
|
||||||
} else {
|
} else {
|
||||||
target = target[0];
|
target = target[0];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Setup focus and tab focus
|
// Setup focus and tab focus
|
||||||
if (target) {
|
if (target) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user