Skip to content

Commit

Permalink
default view port to null
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Apr 4, 2024
1 parent 4fd9db0 commit e667bbe
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 @@ -7,7 +7,7 @@ class PuppeteerApi {
svgImage = null

async createNewBrowser() {
this.browser = await puppeteer.connect({ browserWSEndpoint: config.browserlessUrl })
this.browser = await puppeteer.connect({ browserWSEndpoint: config.browserlessUrl, defaultViewport : null })
this.browser.on('disconnected', async () => {
console.log('disconnected browser')
if (this.browser) await this.browser.close()
Expand Down

0 comments on commit e667bbe

Please sign in to comment.