check if captions exists
This commit is contained in:
parent
8464ffe6ad
commit
9919d80782
@ -1517,6 +1517,7 @@
|
||||
function setCaption(caption) {
|
||||
var captions = getElement(config.selectors.captions);
|
||||
var content = document.createElement('span');
|
||||
if(captions) {
|
||||
|
||||
// Empty the container
|
||||
captions.innerHTML = '';
|
||||
@ -1540,6 +1541,8 @@
|
||||
var redraw = captions.offsetHeight;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Captions functions
|
||||
// Seek the manual caption time and update UI
|
||||
function seekManualCaptions(time) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user