From 5d8740f6091aa22352cccea8eded1faf8c11ae88 Mon Sep 17 00:00:00 2001 From: dontbyte <25500244+dontbyte@users.noreply.github.com> Date: Wed, 21 Aug 2024 08:02:38 +0200 Subject: [PATCH] Update core.ts: change headless param from 'new' to true --- src/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.ts b/src/core.ts index 80aec9e..b44e32f 100644 --- a/src/core.ts +++ b/src/core.ts @@ -66,7 +66,7 @@ export async function generatePDF({ const execPath = process.env.PUPPETEER_EXECUTABLE_PATH ?? chromeExecPath(); console.debug(chalk.cyan(`Using Chromium from ${execPath}`)); const browser = await puppeteer.launch({ - headless: 'new', + headless: true, executablePath: execPath, args: puppeteerArgs, protocolTimeout: protocolTimeout,