mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 00:06:06 +08:00
Fix error reporter causing crash due to infinite recursion
This commit is contained in:
parent
9eb1aef139
commit
202d56d3f2
|
@ -64,7 +64,6 @@ module.exports = (function (...args) {
|
|||
};
|
||||
|
||||
ErrorReporter.prototype._prepareSentryCaptureObjects = function (error, extra) {
|
||||
let captureObjects = this._prepareSentryCaptureObjects(error, extra)
|
||||
// Never send user auth tokens
|
||||
if (error.requestOptions && error.requestOptions.auth) {
|
||||
delete error.requestOptions.auth;
|
||||
|
@ -76,7 +75,7 @@ module.exports = (function (...args) {
|
|||
}
|
||||
|
||||
if (extra && extra.pluginIds && extra.pluginIds.length > 0) {
|
||||
captureObjects = [];
|
||||
const captureObjects = [];
|
||||
for (let i = 0; i < extra.pluginIds.length; i++) {
|
||||
captureObjects.push({
|
||||
extra: extra,
|
||||
|
|
Loading…
Reference in a new issue