Skip to content

Commit

Permalink
#84: Fix app restart issue that occurs when app path has spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
shalithasuranga committed Sep 19, 2023
1 parent 63b6cd9 commit 5791908
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export function killProcess(): Promise<void> {
export function restartProcess(options?: RestartOptions): Promise<void> {
return new Promise(async (resolve: () => void) => {
let command = window.NL_ARGS.reduce((acc: string, arg: string) => {
if(arg.includes(' ')) {
arg = `"${arg}"`
}
acc += ' ' + arg;
return acc;
}, '');
Expand Down

0 comments on commit 5791908

Please sign in to comment.