No longer setting parseError attribute on error object
This was causing some JS exceptions to be logged
This commit is contained in:
parent
5406487ae0
commit
99c4c078fb
@ -152,7 +152,7 @@ export default class Regexper {
|
||||
this.error.innerHTML = '';
|
||||
this.error.appendChild(document.createTextNode(message));
|
||||
|
||||
message.parseError = true;
|
||||
this.parseError = true;
|
||||
|
||||
throw message;
|
||||
})
|
||||
@ -167,7 +167,7 @@ export default class Regexper {
|
||||
if (message === 'Render cancelled') {
|
||||
this._trackEvent('visualization', 'cancelled');
|
||||
this.state = '';
|
||||
} else if (message.parseError) {
|
||||
} else if (this.parseError) {
|
||||
this._trackEvent('visualization', 'parse error');
|
||||
} else {
|
||||
throw message;
|
||||
@ -175,6 +175,7 @@ export default class Regexper {
|
||||
})
|
||||
.finally(() => {
|
||||
this.runningParser = false;
|
||||
this.parseError = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user