From eeef9b1c18d9f434b4280b621d54f6fe313b586f Mon Sep 17 00:00:00 2001 From: Lucas Buzzo Date: Fri, 4 Nov 2022 10:04:53 -0300 Subject: [PATCH] FIX: executablePath() return path even on headful --- source/index.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/index.ts b/source/index.ts index cf41a79..912fd48 100644 --- a/source/index.ts +++ b/source/index.ts @@ -180,10 +180,6 @@ class Chromium { * If not running on AWS Lambda nor Google Cloud Functions, `null` is returned instead. */ static get executablePath(): Promise { - 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) {