mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
add danmuku style
This commit is contained in:
1 parent
c9e8d891e1
commit
13ffb722a1
7 files changed
+42
-12
No files matched your search
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user