Skip to content

Commit

Permalink
fix: specify the target filter in setDiscoverTargets (#8742)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Aug 4, 2022
1 parent 26f6165 commit 49193cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/common/ChromeTargetManager.ts
Expand Up @@ -101,7 +101,12 @@ export class ChromeTargetManager extends EventEmitter implements TargetManager {
this.#connection.on('sessiondetached', this.#onSessionDetached);
this.#setupAttachmentListeners(this.#connection);

this.#connection.send('Target.setDiscoverTargets', {discover: true});
// TODO: remove `as any` once the protocol definitions are updated with the
// next Chromium roll.
this.#connection.send('Target.setDiscoverTargets', {
discover: true,
filter: [{type: 'tab', exclude: true}, {}],
} as any);
}

async initialize(): Promise<void> {
Expand Down

0 comments on commit 49193cb

Please sign in to comment.