Skip to content

Commit

Permalink
fix: specify the target filter in setDiscoverTargets
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeIwaki committed Sep 17, 2022
1 parent b65b7ba commit a68778d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/puppeteer/chrome_target_manager.rb
Expand Up @@ -33,7 +33,13 @@ def initialize(connection:, target_factory:, target_filter_callback:)
)

setup_attachment_listeners(@connection)
@connection.async_send_message('Target.setDiscoverTargets', discover: true)
@connection.async_send_message('Target.setDiscoverTargets', {
discover: true,
filter: [
{ type: 'tab', exclude: true },
{},
],
})
end

def init
Expand Down

0 comments on commit a68778d

Please sign in to comment.