Skip to content

Commit

Permalink
fix: Reverting to previous fix as a temporary workaround (#1718)
Browse files Browse the repository at this point in the history
This commit reverts to a previous fix as a temporary workaround. The issue encountered on CentOS7 and Debian11 when using the 'new' mode in Puppeteer's headless mode requires further investigation and a more comprehensive solution. By reverting to the previous fix, we aim to restore functionality and address the immediate problem. Future updates will address the underlying issue appropriately.
  • Loading branch information
icleitoncosta committed Jun 4, 2023
1 parent cd7a6d7 commit a0375b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/controllers/browser.ts
Expand Up @@ -281,8 +281,12 @@ export async function initBrowser(
const transport = await getTransport(options.browserWS);
browser = await puppeteer.connect({ transport });
} else {
/**
* Setting the headless mode to the old Puppeteer mode, when using the 'new' mode, results in an error on CentOS7 and Debian11.
* Temporary fix.
*/
browser = await puppeteer.launch({
headless: options.headless ? 'new' : false,
headless: options.headless,
devtools: options.devtools,
args: options.browserArgs
? options.browserArgs
Expand Down

0 comments on commit a0375b6

Please sign in to comment.