add createElement

This commit is contained in:
Harvey committed 2022-08-18 09:40:33 +08:00
1 parent 326a292e27
commit 8c9db3f302
10 files changed
+50 -42

No files matched your search

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