mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-22 05:30:07 +00:00
fix: remove unsupported puppeteer args
This commit is contained in:
@@ -46,18 +46,7 @@ export const initWbot = async (whatsapp: Whatsapp): Promise<Session> => {
|
|||||||
const wbot: Session = new Client({
|
const wbot: Session = new Client({
|
||||||
session: sessionCfg,
|
session: sessionCfg,
|
||||||
puppeteer: {
|
puppeteer: {
|
||||||
headless: true,
|
executablePath: process.env.CHROME_BIN || undefined
|
||||||
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"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user