diff --git a/index.d.ts b/index.d.ts index 7adda02..cf929b9 100644 --- a/index.d.ts +++ b/index.d.ts @@ -379,7 +379,7 @@ export type Options = { Note: Some of the launch options are overridden by the `debug` option. - @default {} + @default {headless: 'new'} */ readonly launchOptions?: PuppeteerLaunchOptions; diff --git a/index.js b/index.js index 5d76b92..6bc07e9 100644 --- a/index.js +++ b/index.js @@ -139,7 +139,7 @@ const parseCookie = (url, cookie) => { const internalCaptureWebsite = async (input, options) => { options = { - launchOptions: {}, + launchOptions: {headless: 'new'}, ...options, }; const {launchOptions} = options; diff --git a/readme.md b/readme.md index 211abd0..ac25285 100644 --- a/readme.md +++ b/readme.md @@ -454,7 +454,7 @@ await captureWebsite.file('index.html', 'screenshot.png', { ##### launchOptions Type: `object`\ -Default: `{}` +Default: `{headless: 'new'}` Options passed to [`puppeteer.launch()`](https://pptr.dev/api/puppeteer.puppeteernodelaunchoptions).