From 310acef423dac25e26198a3fb32142f14f8e96f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Einar=20L=C3=B6ve?= Date: Fri, 11 Nov 2016 11:13:30 +0100 Subject: [PATCH 1/2] Correctly checks site url to tab url in reuse check --- packages/react-dev-utils/openChrome.applescript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-dev-utils/openChrome.applescript b/packages/react-dev-utils/openChrome.applescript index 4dfec4a2657..c4dbdc3fd2f 100644 --- a/packages/react-dev-utils/openChrome.applescript +++ b/packages/react-dev-utils/openChrome.applescript @@ -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 From fd021630f59593dfccad1ad5cefd81c5a0952302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Einar=20L=C3=B6ve?= Date: Fri, 11 Nov 2016 13:19:19 +0100 Subject: [PATCH 2/2] Bring chrome to foreground focused after tab reuse --- packages/react-dev-utils/openChrome.applescript | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-dev-utils/openChrome.applescript b/packages/react-dev-utils/openChrome.applescript index c4dbdc3fd2f..b36b70f6cfc 100644 --- a/packages/react-dev-utils/openChrome.applescript +++ b/packages/react-dev-utils/openChrome.applescript @@ -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