Skip to content

Commit

Permalink
react-dev-utils/openBrowser now supports urls with 2+ params (#2076)
Browse files Browse the repository at this point in the history
* react-dev-utils/openBrowser now supports urls with 2+ params

Fixed #2047

* react-dev-utils/openBrowser: encode url before open the browser
  • Loading branch information
alisonmonteiro authored and gaearon committed May 16, 2017
1 parent 0ffed85 commit 98fec2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-dev-utils/openBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function startBrowserProcess(browser, url) {
// Try our best to reuse existing tab
// on OS X Google Chrome with AppleScript
execSync('ps cax | grep "Google Chrome"');
execSync('osascript openChrome.applescript ' + url, {
execSync('osascript openChrome.applescript "' + encodeURI(url) + '"', {
cwd: __dirname,
stdio: 'ignore',
});
Expand Down

0 comments on commit 98fec2d

Please sign in to comment.