Skip to content

Commit

Permalink
Fix - openChrome won't open default browser (using Canary) (facebook#…
Browse files Browse the repository at this point in the history
…1215)

- 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 alexdriaguine committed Jan 23, 2017
1 parent 8c7a9c8 commit e1d708a
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 e1d708a

Please sign in to comment.