mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 09:06:16 -08:00
bugfix
This commit is contained in:
1 parent
ae548e93c8
commit
eed28c1d21
5 files changed
+19
-22
No files matched your search
+6
-9
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user