remove .off

This commit is contained in:
Simon Knott 2025-01-23 15:31:53 +01:00
parent 51b6696408
commit 7f9c091964
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -80,14 +80,6 @@ export class MockingProxy extends ChannelOwner<channels.MockingProxyChannel> imp
this._channel.on('response', this.responseListener);
}
dispose() {
this._channel.off('route', this.routeListener);
this._channel.off('request', this.requestListener);
this._channel.off('requestFailed', this.failedListener);
this._channel.off('requestFinished', this.finishedListener);
this._channel.off('response', this.responseListener);
}
async route(url: URLMatch, handler: network.RouteHandlerCallback, options: { times?: number } = {}): Promise<void> {
this._routes.unshift(new network.RouteHandler(undefined, url, handler, options.times));
await this._updateInterceptionPatterns();