fix: ESLint issue in BrowserSession

This commit is contained in:
Dennis Bartlett 2025-02-11 04:29:09 -06:00
parent 9e76cfd44a
commit 8793c2c6c5

View file

@ -43,8 +43,9 @@ export class BrowserSession {
}
const chromeExecutablePath = vscode.workspace.getConfiguration("cline").get<string>("chromeExecutablePath")
if (chromeExecutablePath && !(await fileExistsAtPath(chromeExecutablePath)))
if (chromeExecutablePath && !(await fileExistsAtPath(chromeExecutablePath))) {
throw new Error(`Chrome executable not found at path: ${chromeExecutablePath}`)
}
const stats: PCRStats = chromeExecutablePath
? { puppeteer: require("puppeteer-core"), executablePath: chromeExecutablePath }
: // if chromium doesn't exist, this will download it to path.join(puppeteerDir, ".chromium-browser-snapshots")