Merge pull request #11 from lubuzzo/development

fixes #6
This commit is contained in:
Kyle McNally 2022-11-04 09:26:33 -04:00 committed by GitHub
commit 623accd814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -180,10 +180,6 @@ class Chromium {
* If not running on AWS Lambda nor Google Cloud Functions, `null` is returned instead.
*/
static get executablePath(): Promise<string> {
if (Chromium.headless !== true) {
return Promise.resolve(null);
}
if (existsSync('/tmp/chromium') === true) {
for (const file of readdirSync('/tmp')) {
if (file.startsWith('core.chromium') === true) {