website-scraper/website-scraper-puppeteer

Switch to new headless mode

aivus opened this issue · 1 comments

aivus commented

https://developer.chrome.com/articles/new-headless/

  Puppeteer old Headless deprecation warning:
    In the near feature `headless: true` will default to the new Headless mode
    for Chrome instead of the old Headless implementation. For more
    information, please see https://developer.chrome.com/articles/new-headless/.
    Consider opting in early by passing `headless: "new"` to `puppeteer.launch()`
    If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/choose.

hey @aivus I think this will help
const browser = await puppeteer.launch({ headless: "new" });