From 0fb1e9a91a7f1ab8b8528a18efe5194b512a70b8 Mon Sep 17 00:00:00 2001 From: scratchyone Date: Wed, 31 Jan 2024 18:52:07 -0500 Subject: [PATCH] Switch to headless browser --- main.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.mjs b/main.mjs index b1c31cb..9205aba 100644 --- a/main.mjs +++ b/main.mjs @@ -8,9 +8,7 @@ function sleep(ms) { return new Promise((resolve) => setTimeout(resolve, ms)); } -const browser = await chromium.launch({ - headless: false, -}); +const browser = await chromium.launch({}); const context = await browser.newContext(devices['Desktop Chrome']); const page = await context.newPage(); await page.goto('https://webcat.unh.edu');