update optionInit

This commit is contained in:
Harvey Zack committed 2023-04-17 22:45:08 +08:00
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;
}