revert
This commit is contained in:
parent
0eedcffb49
commit
b26671c462
|
|
@ -79,8 +79,7 @@ export class RecorderCollection extends EventEmitter {
|
|||
callMetadata.error = error ? serializeError(error) : undefined;
|
||||
// Do not wait for onAfterCall so that performAction returned immediately after the action.
|
||||
mainFrame.instrumentation.onAfterCall(mainFrame, callMetadata).then(() => {
|
||||
if (this._enabled)
|
||||
this._fireChange();
|
||||
this._fireChange();
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
|
|
@ -127,6 +126,9 @@ export class RecorderCollection extends EventEmitter {
|
|||
}
|
||||
|
||||
private _fireChange() {
|
||||
if (!this._enabled)
|
||||
return;
|
||||
|
||||
this.emit('change', collapseActions(this._actions));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue