set captionExists to true if selectedIndex is bigger than capt source
This commit is contained in:
parent
9c867edfbc
commit
c205c47509
@ -1401,7 +1401,7 @@
|
||||
plyr.captionExists = false;
|
||||
log('No caption track found');
|
||||
} else if ((config.captions.selectedIndex + 1) > captionSources.length) {
|
||||
plyr.captionExists = false;
|
||||
plyr.captionExists = true;
|
||||
log('Caption index out of bound');
|
||||
} else {
|
||||
captionSrc = captionSources[config.captions.selectedIndex];
|
||||
|
Loading…
x
Reference in New Issue
Block a user