Skip to content

Commit

Permalink
index set headless to true for git
Browse files Browse the repository at this point in the history
  • Loading branch information
maximfromit committed Aug 21, 2024
1 parent 8cefc67 commit 6ea5d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const extractNewsData = async (page) => {
}

export const fetchAndSortHackerNewsArticles = async () => {
const browser = await chromium.launch({ headless: false })
const browser = await chromium.launch({ headless: true })
const context = await browser.newContext()
const page = await context.newPage()
page.on("requestfailed", (request) => {
Expand Down

0 comments on commit 6ea5d96

Please sign in to comment.