Skip to content

Commit

Permalink
set device scale factor to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Apr 4, 2024
1 parent 3a1a38f commit 7e87dbc
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 @@ -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()
Expand Down

0 comments on commit 7e87dbc

Please sign in to comment.