mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
捕捉全局错误
This commit is contained in:
1 parent
4338cb2217
commit
620638a56e
2 files changed
+5
-1
No files matched your search
+1
-1
@@ -20,7 +20,7 @@
|
||||
<div class="part-left">
|
||||
<div class="controls">
|
||||
<div class="menus">
|
||||
menu
|
||||
ArtPlay.js
|
||||
</div>
|
||||
<input class="run" type="button" value="Run Code">
|
||||
</div>
|
||||
|
||||
@@ -27,6 +27,10 @@ function initApp(app) {
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener('error', e => {
|
||||
log(e.message);
|
||||
});
|
||||
|
||||
function runCode() {
|
||||
try {
|
||||
Artplayer.instances.forEach(ins => {
|
||||
|
||||
Reference in new issue
Block a user