check if captions exists

This commit is contained in:
Marios Tasos 2017-03-15 17:18:34 +02:00
parent 8464ffe6ad
commit 9919d80782

View File

@ -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) {