From e0850dabf1fa93eb45237f999cc5ed962ce05596 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 --- src/openai-auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openai-auth.ts b/src/openai-auth.ts index ac7c42a..7c9179f 100644 --- a/src/openai-auth.ts +++ b/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'