mirror of
https://github.com/comatory/fb2iCal
synced 2024-12-27 08:52:58 +01:00
switch puppeteer to headless
This commit is contained in:
parent
939980cae2
commit
e43dde03f9
@ -2,7 +2,10 @@ const puppeteer = require('puppeteer')
|
||||
|
||||
const crawl = async (url) => {
|
||||
console.log(`crawl started for URL ${url}`)
|
||||
const browser = await puppeteer.launch()
|
||||
const browser = await puppeteer.launch({
|
||||
headless: true,
|
||||
args: [ '--no-sandbox' ],
|
||||
})
|
||||
const page = await browser.newPage()
|
||||
await page.goto(url)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user