From 17650e1a395cb045efe06e7515c670604e4c2a7a Mon Sep 17 00:00:00 2001 From: gookyn Date: Wed, 14 Dec 2022 16:36:45 +0800 Subject: [PATCH] fix(openai-auth.ts): fix the default chrome path of windows #112 --- legacy/src/openai-auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/src/openai-auth.ts b/legacy/src/openai-auth.ts index ac7c42a3..7c9179f4 100644 --- a/legacy/src/openai-auth.ts +++ b/legacy/src/openai-auth.ts @@ -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'