Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #103 from liady/patch-1
Browse files Browse the repository at this point in the history
Pass cdp options to CDP.new()
  • Loading branch information
timsuchanek authored Aug 2, 2017
2 parents f8a56a2 + 314bf57 commit f9a4b6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/chrome/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ export default class LocalChrome implements Chrome {
logLevel: this.options.debug ? 'info' : 'silent',
port: this.options.cdp.port
})
return await CDP({ port: this.chromeInstance.port })
const { host, secure } = this.options.cdp;
return await CDP({ port: this.chromeInstance.port, host, secure })
}

private async connectToChrome(): Promise<Client> {
const target = await CDP.New()
const { port, host, secure } = this.options.cdp;
const target = await CDP.New({ port, host, secure });
return await CDP({ target })
}

Expand Down

0 comments on commit f9a4b6e

Please sign in to comment.