Skip to content

Commit 2fb4e0e

Browse files
committed
add args
1 parent 7931b37 commit 2fb4e0e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

firefox.ts

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import { firefox } from "npm:[email protected]";
33
async function main() {
44
await using browser = await firefox.launch({
55
headless: true,
6+
args: [
7+
"--disable-gpu",
8+
"--no-sandbox",
9+
"--disable-dev-shm-usage",
10+
],
611
});
712
await using page = await browser.newPage();
813
await page.goto("https://example.com");

0 commit comments

Comments
 (0)