mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-17 19:37:02 +00:00
chore: added default args to puppeteer
This commit is contained in:
@@ -22,7 +22,21 @@ export const initWbot = async (whatsapp: Whatsapp): Promise<Session> => {
|
||||
}
|
||||
|
||||
const wbot: Session = new Client({
|
||||
session: sessionCfg
|
||||
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"
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
wbot.initialize();
|
||||
|
||||
Reference in New Issue
Block a user