mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 06:31:20 -08:00
fix style
This commit is contained in:
1 parent
adc837e225
commit
9efdab28b9
3 files changed
+9
-4
No files matched your search
@@ -245,7 +245,10 @@ Artplayer.LOG_VERSION = true;
|
||||
Artplayer.USE_RAF = false;
|
||||
|
||||
if (typeof document !== 'undefined') {
|
||||
if (!document.getElementById('artplayer-style')) {
|
||||
const $style = document.getElementById('artplayer-style');
|
||||
if ($style) {
|
||||
$style.textContent = style;
|
||||
} else {
|
||||
const $style = utils.createElement('style');
|
||||
$style.id = 'artplayer-style';
|
||||
$style.textContent = style;
|
||||
|
||||
Reference in new issue
Block a user