This commit is contained in:
Harvey Zack committed 2018-11-11 15:31:27 +08:00
1 parent ae548e93c8
commit eed28c1d21
5 files changed
+19 -22

No files matched your search

+6 -9
View File
@@ -40,15 +40,12 @@
}
function runCode() {
try {
Artplayer.instances.forEach(ins => {
ins.destroy(true)
});;
eval(mirror.getValue());
initApp(Artplayer.instances[0]);
} catch (error) {
console.error('Error:' + error.message.trim());
}
Artplayer.instances.forEach(ins => {
ins.destroy(true)
});
var code = mirror.getValue();
eval(code);
initApp(Artplayer.instances[0]);
}
$run.addEventListener('click', function (e) {