update demo

This commit is contained in:
Harvey Zack committed 2022-10-30 11:02:49 +08:00
1 parent fbf1039681
commit cb51568f7f
3 files changed
+9 -7

No files matched your search

+3 -3
View File
@@ -165,11 +165,11 @@
}
function runCode() {
Artplayer.instances.forEach(function (art) {
[...Artplayer.instances].forEach(function (art) {
art.destroy(true);
});
var code = editor.getValue();
eval(code);
eval(editor.getValue());
window.art = Artplayer.instances[0];
}
function initApp() {