From 02b699a57027575f9ac233e52507696c5881c084 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Tue, 9 Jul 2024 00:58:30 +0800 Subject: [PATCH] fix: devtools opening issue (#32) --- src/main/actions.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/actions.ts b/src/main/actions.ts index cd3a73a..72ec228 100644 --- a/src/main/actions.ts +++ b/src/main/actions.ts @@ -47,7 +47,11 @@ export const debug: ThunkActionCreator = (app) => async (dispatch) => { const sp = spawn( app.exePath, - [`--inspect=${nodePort}`, `--remote-debugging-port=${windowPort}`], + [ + `--inspect=${nodePort}`, + `--remote-debugging-port=${windowPort}`, + "--remote-allow-origins=devtools://devtools", + ], { cwd: process.platform === "win32" ? path.dirname(app.exePath) : "/", },