Skip to content

Commit

Permalink
fix viewportt:
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Feb 5, 2024
1 parent aa25902 commit d88c38b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file removed public/images/6dglgc.png
Binary file not shown.
2 changes: 1 addition & 1 deletion services/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async function getScreenshot() {

const session = await page.target().createCDPSession()
await session.send("Page.enable")

await page.setViewport({ width: 1920, height: 1080 })
await page.goto("https://www.twitch.tv/" + config.twitch.channels, { waitUntil: 'networkidle0' })
await page.waitForSelector('div.persistent-player')
await page.$eval('.video-player__default-player', el => el.remove())
Expand Down

0 comments on commit d88c38b

Please sign in to comment.