mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-10 12:46:15 -08:00
update
This commit is contained in:
1 parent
9dd49a849c
commit
d276c22f9c
5 files changed
+7
-8
No files matched your search
+1
-1
@@ -12,7 +12,7 @@ export default class Loading {
|
||||
if (option.loading instanceof Element) {
|
||||
$loading.appendChild(option.loading);
|
||||
} else {
|
||||
$loading.insertAdjacentHTML('beforeend', option.loading);
|
||||
$loading.innerHTML = option.loading;
|
||||
}
|
||||
} else {
|
||||
$loading.appendChild(Icons.loading);
|
||||
|
||||
+1
-2
@@ -38,11 +38,10 @@ export default class Subtitle {
|
||||
if (cue) {
|
||||
const template = document.createElement('div');
|
||||
template.appendChild(cue.getCueAsHTML());
|
||||
const trackHtml = template.innerHTML
|
||||
$subtitle.innerHTML = template.innerHTML
|
||||
.split(/\r?\n/)
|
||||
.map(item => `<p>${item}</p>`)
|
||||
.join('');
|
||||
$subtitle.insertAdjacentHTML('beforeend', trackHtml);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user