mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 13:51:20 -08:00
update optionInit
This commit is contained in:
1 parent
339034d30d
commit
443afeb496
4 files changed
+32
-32
No files matched your search
@@ -37,5 +37,13 @@ export default function attrInit(art) {
|
||||
$video['webkit-playsinline'] = true;
|
||||
}
|
||||
|
||||
if (option.theme) {
|
||||
option.cssVar['--art-theme'] = option.theme;
|
||||
}
|
||||
|
||||
for (const key in option.cssVar) {
|
||||
art.cssVar(key, option.cssVar[key]);
|
||||
}
|
||||
|
||||
art.url = option.url;
|
||||
}
|
||||
Reference in new issue
Block a user