忘了改一句话
This commit is contained in:
parent
f8b3c29ab8
commit
e02fb4ebb2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue