Add path for chrome on linux (#111)

This commit is contained in:
Mike Barkmin 2020-04-14 22:08:00 +02:00 committed by GitHub
parent 359fd09c80
commit bce2922d67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}