Skip to content

Commit

Permalink
Fix chrome tab reuse (facebook#1035)
Browse files Browse the repository at this point in the history
* Correctly checks site url to tab url in reuse check

* Bring chrome to foreground focused after tab reuse
  • Loading branch information
Einar Löve authored and alexdriaguine committed Jan 23, 2017
1 parent 07e1e53 commit bb396df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-dev-utils/openChrome.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on run argv
set theTabIndex to 0
repeat with theTab in every tab of theWindow
set theTabIndex to theTabIndex + 1
if theTab's URL is theURL then
if theTab's URL as string contains theURL then
set found to true
exit repeat
end if
Expand All @@ -38,6 +38,7 @@ on run argv
tell theTab to reload
set index of theWindow to 1
set theWindow's active tab index to theTabIndex
tell theWindow to activate
else
tell window 1
activate
Expand Down

0 comments on commit bb396df

Please sign in to comment.