Frontend: npm run fmt

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-05-19 09:21:20 +02:00
parent bbe60d120b
commit 035938938d

View file

@ -70,19 +70,19 @@ class Viewer {
return item[button.id].src + "?download=1";
}
},
addCaptionHTMLFn: function(item, captionEl, isFake) {
addCaptionHTMLFn: function(item, captionEl /*, isFake */) {
// item - slide object
// captionEl - caption DOM element
// isFake - true when content is added to fake caption container
// (used to get size of next or previous caption)
if(!item.title) {
captionEl.children[0].innerHTML = '';
captionEl.children[0].innerHTML = "";
return false;
}
if(item.description) {
captionEl.children[0].innerHTML = stripHtml(item.title) + '<br><span class="description">' + stripHtml(item.description) + '</span>';
captionEl.children[0].innerHTML = stripHtml(item.title) + "<br><span class=\"description\">" + stripHtml(item.description) + "</span>";
} else {
captionEl.children[0].innerHTML = stripHtml(item.title);
}