add danmuku style

This commit is contained in:
Harvey authored and Harvey Zack committed 2022-05-05 23:27:15 +08:00
1 parent c9e8d891e1
commit 13ffb722a1
7 files changed
+42 -12

No files matched your search

+6 -4
View File
@@ -223,10 +223,12 @@ Artplayer.FAST_FORWARD_VALUE = 3;
Artplayer.FAST_FORWARD_TIME = 1000;
if (typeof document !== 'undefined') {
const $style = document.createElement('style');
$style.dataset.from = 'artplayer';
$style.textContent = style;
document.head.appendChild($style);
if (!document.getElementById('artplayer-style')) {
const $style = document.createElement('style');
$style.id = 'artplayer-style';
$style.textContent = style;
document.head.appendChild($style);
}
}
if (typeof window !== 'undefined') {