Skip to content

Commit

Permalink
refactor: move filter definition
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Oct 9, 2023
1 parent b6e6204 commit f138e21
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/puppeteer-core/src/cdp/ChromeTargetManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ export class ChromeTargetManager
#targetsIdsForInit = new Set<string>();
#waitForInitiallyDiscoveredTargets = true;

// TODO: remove the flag once the testing/rollout is done.
#discoveryFilter: Protocol.Target.FilterEntry[];
#discoveryFilter: Protocol.Target.FilterEntry[] = [{}];

constructor(
connection: Connection,
Expand All @@ -108,7 +107,6 @@ export class ChromeTargetManager
waitForInitiallyDiscoveredTargets = true
) {
super();
this.#discoveryFilter = [{}];
this.#connection = connection;
this.#targetFilterCallback = targetFilterCallback;
this.#targetFactory = targetFactory;
Expand Down

0 comments on commit f138e21

Please sign in to comment.