Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 13, 2024
1 parent 643a058 commit 6277ceb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ await fs.writeFile(

console.log('✔ `/rss.xml`')

chromium.setHeadlessMode = true
chromium.setGraphicsMode = false

const browser = await puppeteer.launch(
Expand All @@ -167,7 +168,7 @@ const browser = await puppeteer.launch(
args: [...chromium.args, '--disable-gpu'],
defaultViewport: chromium.defaultViewport,
executablePath: await chromium.executablePath(),
headless: true
headless: chromium.headless
}
: {headless: true}
)
Expand Down

0 comments on commit 6277ceb

Please sign in to comment.