fix(openai-auth.ts): fix the default chrome path of windows

#112
pull/134/head
gookyn 2022-12-14 16:36:45 +08:00
rodzic ad042d896f
commit e0850dabf1
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -208,7 +208,7 @@ export async function getBrowser(launchOptions?: PuppeteerLaunchOptions) {
export const defaultChromeExecutablePath = (): string => {
switch (os.platform()) {
case 'win32':
return 'C:\\ProgramFiles\\Google\\Chrome\\Application\\chrome.exe'
return 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe'
case 'darwin':
return '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'