refactor: hide browser chrome platform finders · openclaw/openclaw@a6f9c1f
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -538,7 +538,7 @@ export function findChromeExecutableMac(): BrowserExecutable | null {
|
538 | 538 | return findFirstExecutable(candidates); |
539 | 539 | } |
540 | 540 | |
541 | | -export function findGoogleChromeExecutableMac(): BrowserExecutable | null { |
| 541 | +function findGoogleChromeExecutableMac(): BrowserExecutable | null { |
542 | 542 | return findFirstChromeExecutable([ |
543 | 543 | "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", |
544 | 544 | path.join(os.homedir(), "Applications/Google Chrome.app/Contents/MacOS/Google Chrome"), |
@@ -573,7 +573,7 @@ export function findChromeExecutableLinux(): BrowserExecutable | null {
|
573 | 573 | return findFirstExecutable(candidates); |
574 | 574 | } |
575 | 575 | |
576 | | -export function findGoogleChromeExecutableLinux(): BrowserExecutable | null { |
| 576 | +function findGoogleChromeExecutableLinux(): BrowserExecutable | null { |
577 | 577 | return findFirstChromeExecutable([ |
578 | 578 | "/usr/bin/google-chrome", |
579 | 579 | "/usr/bin/google-chrome-stable", |
@@ -654,7 +654,7 @@ export function findChromeExecutableWindows(): BrowserExecutable | null {
|
654 | 654 | return findFirstExecutable(candidates); |
655 | 655 | } |
656 | 656 | |
657 | | -export function findGoogleChromeExecutableWindows(): BrowserExecutable | null { |
| 657 | +function findGoogleChromeExecutableWindows(): BrowserExecutable | null { |
658 | 658 | const localAppData = process.env.LOCALAPPDATA ?? ""; |
659 | 659 | const programFiles = process.env.ProgramFiles ?? "C:\\Program Files"; |
660 | 660 | const programFilesX86 = process.env["ProgramFiles(x86)"] ?? "C:\\Program Files (x86)"; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。