Skip to content

Commit fae165c

Browse files
authored
Merge pull request #169 from tech-sushant/win-fix
fix: command syntax for opening browser on Windows
2 parents 1385177 + a171c93 commit fae165c

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)