去掉一个log

This commit is contained in:
nonameShijian 2024-01-19 00:40:17 +08:00
parent cd0b818cb8
commit 2deb535d23
1 changed files with 0 additions and 1 deletions

View File

@ -783,7 +783,6 @@ async function setOnError() {
});
window.onerror = function (msg, src, line, column, err) {
console.log([...arguments]);
if (promiseErrorHandler.onErrorPrepare) promiseErrorHandler.onErrorPrepare();
const winPath = window.__dirname ? ('file:///' + (__dirname.replace(new RegExp('\\\\', 'g'), '/') + '/')) : '';
let str = `错误文件: ${typeof src == 'string' ? decodeURI(src).replace(lib.assetURL, '').replace(winPath, '') : '未知文件'}`;