Skip to content

Commit 025a760

Browse files
committed
fixes
1 parent 72a500a commit 025a760

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/botasaurus-js/src/page.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ export async function createPlaywrightChrome(headless: boolean, userAgent:string
3131
if (userAgent) {
3232
flags.push(`--user-agent=${userAgent}`);
3333
}
34+
const hasNoSandbox = process.argv.some(x => x === "--no-sandbox")
35+
if (hasNoSandbox) {
36+
flags.push("--no-sandbox");
37+
}
3438

3539
const { port, kill } = await ChromeLauncher.launch({
3640
chromeFlags: flags,

0 commit comments

Comments
 (0)