don't use local browser anymore

This commit is contained in:
geekgeekrun
2026-01-12 16:37:52 +08:00
parent c1faecaaed
commit 94de507c9a

View File

@@ -102,16 +102,16 @@ export const getAnyAvailablePuppeteerExecutable = async (): Promise<BrowserInfo
if (lastUsedOne) { if (lastUsedOne) {
return lastUsedOne return lastUsedOne
} }
// find existed browser - the one maybe actively installed by user or ship with os like Edge on windows // // find existed browser - the one maybe actively installed by user or ship with os like Edge on windows
try { // try {
const existedOne = await findAndLocateUserInstalledChromiumExecutableSync() // const existedOne = await findAndLocateUserInstalledChromiumExecutableSync()
await saveLastUsedAndAvailableBrowserInfo(existedOne) // await saveLastUsedAndAvailableBrowserInfo(existedOne)
// save its path // // save its path
return existedOne // return existedOne
} catch (err) { // } catch (err) {
console.error(err) // console.error(err)
console.log('no existed browser path found') // console.log('no existed browser path found')
} // }
// find existed browser - the fallback one // find existed browser - the fallback one
if (await checkCachedPuppeteerExecutable()) { if (await checkCachedPuppeteerExecutable()) {
const cachedOne = await getExpectCachedPuppeteerExecutable() const cachedOne = await getExpectCachedPuppeteerExecutable()