fix style

This commit is contained in:
Harvey Zack committed 2023-09-10 11:18:20 +08:00
1 parent adc837e225
commit 9efdab28b9
3 files changed
+9 -4

No files matched your search

+4 -1
View File
@@ -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;