Skip to content

Commit

Permalink
[ReactNative] Don't activate Chrome when debugger is already open
Browse files Browse the repository at this point in the history
Summary:
Before this diff every time you reload in debug mode Chrome window
is actiavated. Looks like that behaviour is pretty annoying.

Fixes #689

@public

Test Plan:
```
$ ./packager/launchChromeDevTools.applescript 'https://www.facebook.com/'
```

First time it opens a new tab and activates Chrome, running this again does
not activate Chrome if the tab already exists.
  • Loading branch information
frantic committed Jun 19, 2015
1 parent 634cdfb commit 4d97c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packager/launchChromeDevTools.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on run argv
set theURL to item 1 of argv

tell application "Chrome"
activate

if (count every window) = 0 then
make new window
Expand Down Expand Up @@ -40,6 +39,7 @@ on run argv
set theWindow's active tab index to theTabIndex
else
tell window 1
activate
make new tab with properties {URL:theURL}
end tell
end if
Expand Down

0 comments on commit 4d97c01

Please sign in to comment.