This commit is contained in:
Harvey Zack committed 2018-10-17 19:38:18 +08:00
1 parent 9dd49a849c
commit d276c22f9c
5 files changed
+7 -8

No files matched your search

+2 -3
View File
@@ -970,10 +970,9 @@
if (cue) {
var template = document.createElement('div');
template.appendChild(cue.getCueAsHTML());
var trackHtml = template.innerHTML.split(/\r?\n/).map(function (item) {
$subtitle.innerHTML = template.innerHTML.split(/\r?\n/).map(function (item) {
return "<p>".concat(item, "</p>");
}).join('');
$subtitle.insertAdjacentHTML('beforeend', trackHtml);
}
});
}
@@ -1206,7 +1205,7 @@
if (option.loading instanceof Element) {
$loading.appendChild(option.loading);
} else {
$loading.insertAdjacentHTML('beforeend', option.loading);
$loading.innerHTML = option.loading;
}
} else {
$loading.appendChild(Icons$1.loading);