Skip to content

Commit

Permalink
fix: devtools opening issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Jul 8, 2024
1 parent e1be3bb commit 5082d4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ export const debug: ThunkActionCreator<AppInfo> = (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) : "/",
},
Expand Down

0 comments on commit 5082d4c

Please sign in to comment.