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