mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -08:00
捕捉全局错误
This commit is contained in:
1 parent
4338cb2217
commit
620638a56e
2 files changed
+5
-1
No files matched your search
@@ -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