From 56635438a479755bd9fab770961710735f13c9d5 Mon Sep 17 00:00:00 2001 From: canove Date: Wed, 4 Aug 2021 09:23:16 -0300 Subject: [PATCH] fix: remove unsupported puppeteer args --- backend/src/libs/wbot.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/backend/src/libs/wbot.ts b/backend/src/libs/wbot.ts index 579cc40..4febef7 100644 --- a/backend/src/libs/wbot.ts +++ b/backend/src/libs/wbot.ts @@ -46,18 +46,7 @@ export const initWbot = async (whatsapp: Whatsapp): Promise => { const wbot: Session = new Client({ session: sessionCfg, puppeteer: { - headless: true, - executablePath: process.env.CHROME_BIN || null, - args: [ - "--no-sandbox", - "--disable-setuid-sandbox", - "--disable-dev-shm-usage", - "--disable-accelerated-2d-canvas", - "--no-first-run", - "--no-zygote", - "--process-per-site", - "--disable-gpu" - ] + executablePath: process.env.CHROME_BIN || undefined } });