From f87609f0cb76bc67e730d34eae0c1ea2b02471de Mon Sep 17 00:00:00 2001 From: sw3205933776 <3205933776@qq.com> Date: Fri, 8 Aug 2025 14:46:19 +0800 Subject: [PATCH] fix: remove extra quotes in Notion callback host argument --- electron/main/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/electron/main/index.ts b/electron/main/index.ts index 2aec33aa..a7efe8cb 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -324,14 +324,15 @@ function registerIpcHandlers() { const { spawn } = await import('child_process'); // Add --host parameter - const commandWithHost = `${command} --debug --host "dev.eigent.ai/api/oauth/notion/callback?code=1"`; + const commandWithHost = `${command} --debug --host dev.eigent.ai/api/oauth/notion/callback?code=1`; // const commandWithHost = `${command}`; log.info(' start execute command:', commandWithHost); // Parse command and arguments const [cmd, ...args] = commandWithHost.split(' '); - + log.info('start execute command:', commandWithHost.split(' ')); + console.log(cmd, args) return new Promise((resolve) => { const child = spawn(cmd, args, { cwd: process.cwd(),