We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4606757 commit 2e101aeCopy full SHA for 2e101ae
src/utils.ts
@@ -4,11 +4,11 @@ import { stdWrite } from "./stdio";
4
export function openInChrome(url: string) {
5
let command;
6
if (process.platform === "win32") {
7
- command = `start chrome ${url}`;
+ command = `start chrome "${url}"`;
8
} else if (process.platform === "darwin") {
9
- command = `open -a "Google Chrome" ${url}`;
+ command = `open -a "Google Chrome" "${url}"`;
10
} else if (process.platform === "linux") {
11
- command = `google-chrome ${url}`;
+ command = `google-chrome "${url}"`;
12
}
13
14
exec(command!, (err) => {
0 commit comments