Skip to content

Commit 3342f17

Browse files
Einar Löverandycoulman
Einar Löve
authored andcommitted
Fix chrome tab reuse (facebook#1035)
* Correctly checks site url to tab url in reuse check * Bring chrome to foreground focused after tab reuse
1 parent 5a7437b commit 3342f17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-dev-utils/openChrome.applescript

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on run argv
2323
set theTabIndex to 0
2424
repeat with theTab in every tab of theWindow
2525
set theTabIndex to theTabIndex + 1
26-
if theTab's URL is theURL then
26+
if theTab's URL as string contains theURL then
2727
set found to true
2828
exit repeat
2929
end if
@@ -38,6 +38,7 @@ on run argv
3838
tell theTab to reload
3939
set index of theWindow to 1
4040
set theWindow's active tab index to theTabIndex
41+
tell theWindow to activate
4142
else
4243
tell window 1
4344
activate

0 commit comments

Comments
 (0)