Skip to content

Commit

Permalink
Fix - openChrome won't open default browser (using Canary) (#1215)
Browse files Browse the repository at this point in the history
- Use “Chrome” instead of "Google Chrome", It  will try to use current active browser.
  otherwise, use default.
- If “Chrome”s aren’t running, will fallback to opn(url)
  • Loading branch information
n3tr authored and gaearon committed Dec 9, 2016
1 parent e7d71bd commit 3416ba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-dev-utils/openChrome.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ property targetWindow: null
on run argv
set theURL to item 1 of argv

tell application "Google Chrome"
tell application "Chrome"

if (count every window) = 0 then
make new window
Expand Down Expand Up @@ -58,7 +58,7 @@ end run
-- if found, store tab, index, and window in properties
-- (properties were declared on top of file)
on lookupTabWithUrl(lookupUrl)
tell application "Google Chrome"
tell application "Chrome"
-- Find a tab with the given url
set found to false
set theTabIndex to -1
Expand Down

0 comments on commit 3416ba2

Please sign in to comment.