Commit 39518ac6 authored by Travis Fischer's avatar Travis Fischer

feat: respect PUPPETEER_EXECUTABLE_PATH

parent e144d78e
......@@ -360,6 +360,10 @@ export async function getBrowser(
* Gets the default path to chrome's executable for the current platform.
*/
export const defaultChromeExecutablePath = (): string => {
if (process.env.PUPPETEER_EXECUTABLE_PATH) {
return process.env.PUPPETEER_EXECUTABLE_PATH
}
switch (os.platform()) {
case 'win32':
return 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment