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