mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
add createElement
This commit is contained in:
1 parent
326a292e27
commit
8c9db3f302
10 files changed
+50
-42
No files matched your search
@@ -230,7 +230,7 @@ Artplayer.TOUCH_MOVE_RATIO = 0.5;
|
||||
|
||||
if (typeof document !== 'undefined') {
|
||||
if (!document.getElementById('artplayer-style')) {
|
||||
const $style = document.createElement('style');
|
||||
const $style = utils.createElement('style');
|
||||
$style.id = 'artplayer-style';
|
||||
$style.textContent = style;
|
||||
document.head.appendChild($style);
|
||||
|
||||
Reference in new issue
Block a user