Skip to content

Commit f5dfb16

Browse files
n3trrandycoulman
authored andcommitted
Fix - openChrome won't open default browser (using Canary) (facebook#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)
1 parent 658dc2e commit f5dfb16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/react-dev-utils/openChrome.applescript

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ property targetWindow: null
1414
on run argv
1515
set theURL to item 1 of argv
1616

17-
tell application "Google Chrome"
17+
tell application "Chrome"
1818

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

0 commit comments

Comments
 (0)