Skip to content

Commit 2e101ae

Browse files
authored
Update utils.ts
1 parent 4606757 commit 2e101ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { stdWrite } from "./stdio";
44
export function openInChrome(url: string) {
55
let command;
66
if (process.platform === "win32") {
7-
command = `start chrome ${url}`;
7+
command = `start chrome "${url}"`;
88
} else if (process.platform === "darwin") {
9-
command = `open -a "Google Chrome" ${url}`;
9+
command = `open -a "Google Chrome" "${url}"`;
1010
} else if (process.platform === "linux") {
11-
command = `google-chrome ${url}`;
11+
command = `google-chrome "${url}"`;
1212
}
1313

1414
exec(command!, (err) => {

0 commit comments

Comments
 (0)