Skip to content

Commit a171c93

Browse files
committed
fix: command syntax for opening browser on Windows
1 parent 1385177 commit a171c93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/live-utils/start-session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function openBrowser(launchUrl: string): void {
133133
process.platform === "darwin"
134134
? ["open", launchUrl]
135135
: process.platform === "win32"
136-
? ["cmd", "/c", "start", launchUrl]
136+
? ["cmd", "/c", "start", `""`, `"${launchUrl}"`]
137137
: ["xdg-open", launchUrl];
138138

139139
// nosemgrep:javascript.lang.security.detect-child-process.detect-child-process

0 commit comments

Comments
 (0)