From e667bbe84a69820252a55b624aea088beff97cfe Mon Sep 17 00:00:00 2001 From: Lluis Date: Thu, 4 Apr 2024 15:31:19 +0200 Subject: [PATCH] default view port to null --- helpers/browserApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/browserApi.js b/helpers/browserApi.js index a2ec15a..9bdfab5 100644 --- a/helpers/browserApi.js +++ b/helpers/browserApi.js @@ -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()