Skip to content

Commit

Permalink
Update core.ts: change headless param from 'new' to true
Browse files Browse the repository at this point in the history
  • Loading branch information
dontbyte authored Aug 21, 2024
1 parent 0e69ad6 commit 5d8740f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5d8740f

Please sign in to comment.