Skip to content
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

Merged
merged 5 commits into from
Jan 3, 2018

Conversation

linonetwo
Copy link
Contributor

@linonetwo linonetwo commented Jan 3, 2018

To support #93 , add a single line.

@stereobooster
Copy link
Owner

stereobooster commented Jan 3, 2018

add to index.js

const defaultOptions = {
  ...
  headless: true,
  puppeteerArgs: [],
  puppeteerExecutablePath: undefined,
  ...
}

@linonetwo
Copy link
Contributor Author

@stereobooster Done.

@@ -135,6 +135,7 @@ const crawl = async opt => {
const browser = await puppeteer.launch({
headless: options.headless,
args: options.puppeteerArgs,
executablePath: options.executablePath,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

executablePath: options.puppeteerExecutablePath

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh...Silly me.

@stereobooster
Copy link
Owner

stereobooster commented Jan 3, 2018

I can merge as is, but it would be nice to have some documentation (in caveats section)

@linonetwo
Copy link
Contributor Author

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
Copy link
Owner

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reasonable.

@stereobooster
Copy link
Owner

Thank you. You do not need to be sorry for your english or forgetting something. Any contribution is valuable if it improves functionality. 👍

@stereobooster stereobooster merged commit 87317e5 into stereobooster:master Jan 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants