patchright-core 1.51.1 → 1.51.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -501,7 +501,7 @@ class BrowserContext extends _channelOwner.ChannelOwner {
501
501
  await this._channel.enableRecorder(params);
502
502
  }
503
503
  async installInjectRoute() {
504
- if (this.routeInjecting || this.context().routeInjecting) return;
504
+ if (this.routeInjecting) return;
505
505
  await this.route('**/*', async route => {
506
506
  try {
507
507
  if (route.request().resourceType() === 'document' && route.request().url().startsWith('http')) {