@@ -64,7 +64,12 @@ window.addEventListener("unhandledrejection", function(event) {
// }
// );
- window._hmt.push(["_trackEvent", "全局Promise未处理错误", event.reason]);
+ window._hmt.push([
+ "_trackEvent",
+ "全局Promise未处理错误",
+ location.href,
+ event.reason,
+ ]);
});
window.addEventListener("rejectionhandled", function(event) {