-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add executablePath to options #94
Conversation
add to index.js const defaultOptions = {
...
headless: true,
puppeteerArgs: [],
puppeteerExecutablePath: undefined,
...
} |
@stereobooster Done. |
src/puppeteer_utils.js
Outdated
@@ -135,6 +135,7 @@ const crawl = async opt => { | |||
const browser = await puppeteer.launch({ | |||
headless: options.headless, | |||
args: options.puppeteerArgs, | |||
executablePath: options.executablePath, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
executablePath: options.puppeteerExecutablePath
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh...Silly me.
I can merge as is, but it would be nice to have some documentation (in caveats section) |
What do you think, my English might be poor... |
Readme.md
Outdated
@@ -97,6 +97,12 @@ Use `inlineCss: true` to enable this feature. | |||
|
|||
TODO: as soon as the feature will be stable it should be enabled by default. | |||
|
|||
### puppeteerExecutablePath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name section Docker
and move under Containers and other restricted environments
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reasonable.
Thank you. You do not need to be sorry for your english or forgetting something. Any contribution is valuable if it improves functionality. 👍 |
To support #93 , add a single line.