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

add chromeFlags to Chromeless constructor #214

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/chrome/local.ts
Original file line number Diff line number Diff line change
@@ -38,6 +38,7 @@ export default class LocalChrome implements Chrome {
this.chromeInstance = await launch({
logLevel: this.options.debug ? 'info' : 'silent',
port: this.options.cdp.port,
chromeFlags: this.options.chromeFlags,
})
return await CDP({ port: this.chromeInstance.port })
}
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -50,6 +50,7 @@ export interface ChromelessOptions {
launchChrome?: boolean // auto-launch chrome (local) `true`
cdp?: CDPOptions
remote?: RemoteOptions | boolean
chromeFlags?: any[]
}

export interface Chrome {