From 0102971ae974022ec4a7a149e8924ea355b52cc3 Mon Sep 17 00:00:00 2001 From: Nikolas Evers Date: Thu, 30 Jan 2025 19:14:14 +0100 Subject: [PATCH] support `chrome-headless-shell` --- bin/browser.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/browser.cjs b/bin/browser.cjs index 04e0c20..5d49bce 100644 --- a/bin/browser.cjs +++ b/bin/browser.cjs @@ -92,7 +92,7 @@ const callChrome = async pup => { if (!browser) { browser = await puppet.launch({ - headless: request.options.newHeadless ? 'new' : true, + headless: request.options.newHeadless ? true : 'shell', acceptInsecureCerts: request.options.acceptInsecureCerts, executablePath: request.options.executablePath, args: request.options.args || [],