Add path for chrome on linux (#111)
This commit is contained in:
parent
359fd09c80
commit
bce2922d67
|
@ -1,6 +1,8 @@
|
|||
import chrome from 'chrome-aws-lambda';
|
||||
const exePath = process.platform === 'win32'
|
||||
? 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe'
|
||||
: process.platform === 'linux'
|
||||
? '/usr/bin/google-chrome'
|
||||
: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome';
|
||||
|
||||
interface Options {
|
||||
|
@ -25,4 +27,4 @@ export async function getOptions(isDev: boolean) {
|
|||
};
|
||||
}
|
||||
return options;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue