From 7e87dbcaa795bf80af2c84a59145ad2147e89514 Mon Sep 17 00:00:00 2001 From: Lluis Date: Thu, 4 Apr 2024 16:37:21 +0200 Subject: [PATCH] set device scale factor to 2 --- helpers/browserApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/browserApi.js b/helpers/browserApi.js index 32ef23f..6a5566b 100644 --- a/helpers/browserApi.js +++ b/helpers/browserApi.js @@ -22,7 +22,7 @@ class PuppeteerApi { } async handleStart() { - await this.page.setViewport({ width: 1920, height: 1080 }) + await this.page.setViewport({ width: 1920, height: 1080, deviceScaleFactor: 2 }) await this.page.goto("https://www.twitch.tv/" + config.twitch.channels, { waitUntil: ['networkidle0', 'domcontentloaded'] }) //const fullPage = await this.page.$('body') //const fullPageSize = await fullPage.boundingBox()