Skip to content

Commit

Permalink
Switch to headless browser
Browse files Browse the repository at this point in the history
  • Loading branch information
scratchyone committed Jan 31, 2024
1 parent 8b85c9f commit 0fb1e9a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 0fb1e9a

Please sign in to comment.