Skip to content

Commit 98fec2d

Browse files
alisonmonteirogaearon
authored andcommitted
react-dev-utils/openBrowser now supports urls with 2+ params (#2076)
* react-dev-utils/openBrowser now supports urls with 2+ params Fixed #2047 * react-dev-utils/openBrowser: encode url before open the browser
1 parent 0ffed85 commit 98fec2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-dev-utils/openBrowser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function startBrowserProcess(browser, url) {
7676
// Try our best to reuse existing tab
7777
// on OS X Google Chrome with AppleScript
7878
execSync('ps cax | grep "Google Chrome"');
79-
execSync('osascript openChrome.applescript ' + url, {
79+
execSync('osascript openChrome.applescript "' + encodeURI(url) + '"', {
8080
cwd: __dirname,
8181
stdio: 'ignore',
8282
});

0 commit comments

Comments
 (0)