Skip to content

Commit

Permalink
add chrome to connection url
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Apr 11, 2024
1 parent c54922c commit a20aa75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/browserApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit a20aa75

Please sign in to comment.