Update BrowserSession.ts

One-line change to improve Roo-Cline's eyesight.

Aside: the above improves an AI's vision; the below works for people.  My prescription has gone from -4.50 to -2.50 in a year, and I only do the exercises once a month or so, after the first few weeks of once a day:

https://www.youtube.com/watch?v=7TU7o5E3QuU
This commit is contained in:
LibertyTeeth
2024-12-24 13:20:36 -05:00
committed by GitHub
parent bc7dee6097
commit 72eadedcd4

View File

@@ -134,6 +134,7 @@ export class BrowserSession {
let screenshotBase64 = await this.page.screenshot({ let screenshotBase64 = await this.page.screenshot({
...options, ...options,
type: "webp", type: "webp",
quality: 100, // Set maximum quality to prevent compression artifacts
}) })
let screenshot = `data:image/webp;base64,${screenshotBase64}` let screenshot = `data:image/webp;base64,${screenshotBase64}`