忘了改一句话

This commit is contained in:
shijian 2024-01-11 00:28:58 +08:00
parent f8b3c29ab8
commit e02fb4ebb2
1 changed files with 1 additions and 1 deletions

View File

@ -761,7 +761,7 @@ function setWindowListener() {
Error.prepareStackTrace = function (e, stack) {
errorList.push([e, stack]);
};
// 但愿有用
// 已经有用了
window.addEventListener("unhandledrejection", error => {
error.promise.catch(e => {
const result = errorList.find(v => v[0] === e);