add danmuku style

This commit is contained in:
Harvey committed 2022-05-05 17:18:54 +08:00
1 parent 0ed7f87794
commit 0d7725aabb
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') {