...
|
...
|
@@ -39,7 +39,11 @@ var errReporter = { |
|
|
});
|
|
|
},
|
|
|
init: function() {
|
|
|
window.onerror = this.writeError.bind(this);
|
|
|
var self = this;
|
|
|
|
|
|
window.onerror = function(msg, source, lineno, colno, error) {
|
|
|
self.writeError(msg, source, lineno, colno, error);
|
|
|
};
|
|
|
|
|
|
// 上报未上报的事件
|
|
|
this.reportError();
|
...
|
...
|
|