Created by: n3tr
Still WIP: need to clean up duplicated code and found some unexpected behavior (both in master and this branch)
on start
script - If there're no debugging tab (localhost:3000) open, we will try to use empty tab instead of create new one. (fixes #1157 (closed))
Test plan
To invoke script, We can use both npm/yarn start
or run osascript openChrome.applescript localhost:3000
inside /packages/react-dev-utils
folder .
- No open chrome window: When chrome open with an empty tab, use the empty tab instead of create new one.
- Chrome window with debugging tab: Reuse debugging tab.
- Chrome window w/o debugging tab: Create new tab with url.
- Chrome window w/o debugging tab, but have an empty tab: Use empty tab.
# Setup
npm run create-react-app my-app
cd my-app
yarn start
Test env
- Browser: Google Chrome Version 54.0.2840.98
- OS: macOS Sierra 10.12.1