From a20aa75095243dc684b01724d0ffd889a57603e7 Mon Sep 17 00:00:00 2001 From: Lluis Date: Fri, 12 Apr 2024 01:14:22 +0200 Subject: [PATCH] add chrome to connection url --- helpers/browserApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/browserApi.js b/helpers/browserApi.js index cc1d447..228f77b 100644 --- a/helpers/browserApi.js +++ b/helpers/browserApi.js @@ -12,7 +12,7 @@ class PuppeteerApi { args: ["--no-sandbox", "--window-size=1920,1080", "--disable-infobars", "--disable-setuid-sandbox", "--start-maximized", "--use-gl=angle", "--use-angle=gl"], }); - const url = `${config.browserlessUrl}?token=8R1X54R235511&launch=${btoa(launchArgs)}&blockAds=true` + const url = `${config.browserlessUrl}/chrome?token=8R1X54R235511&launch=${btoa(launchArgs)}&blockAds=true` console.log(url); this.browser = await puppeteer.connect({ browserWSEndpoint: config.browserlessUrl, defaultViewport : null }) this.browser.on('disconnected', async () => {