Comments (8)
Yeah, there's an issue on Chrome where they don't want to implement that feature, but I've read that you can use applescript in order to do that. @frantic is doing something similar for the react native chrome debugger opening.
from create-react-app.
There’s also a Chrome extension that does it out of the box.
Maybe we can point people to it, assuming it’s easy to install: https://github.com/mbhutton/chrome-duplicate-tab-detector
from create-react-app.
(We can also add something like this to React DevTools, assuming the port is more specific so we’re not handling false positives. Most people developing on React already have React DevTools.)
from create-react-app.
from create-react-app.
Here's the applescript that keeps the current tab: https://github.com/facebook/react-native/blob/f03c7b59fd8962682cff5797a3916882ef389871/packager/launchChromeDevTools.applescript
They replaced it with opn but check on the devserver if the tab with the websocket is already opened. Unfortunately we can't do that here because we don't maintain a running server.
from create-react-app.
It’s not very nice to force people to use Chrome. After all our friends at Mozilla are building new Firefox debugger with React 😄 . Maybe there is some way to check if Chrome is the default browser?
from create-react-app.
Absolutely, my previous solution checked if Chrome was opened before running it and the current one uses the default browser
from create-react-app.
👍 We could then combine your check with AppleScript and fallback to opn
.
from create-react-app.
Related Issues (20)
- [https://newsroom.spotify.com/news/](https://deezer.page.link/fCBsxrTRUZvKbLkA8) HOT 3
- react-scripts/v/5.1.0-next.14 contains multiple security vulnerabilities for inner modules
- Issue in creating react app HOT 4
- cra打包路由切换FiberRootNode会新增,webpack打包就不会 HOT 1
- Error -4048 and Error -4058 and ENOENT, HOT 1
- Des erreurs apres installation de mui sur un projet React 18.0.0 ou supérieur HOT 1
- del proyecto
- how i can run react program in vs code HOT 5
- React JS HOT 4
- @babel/plugin-proposal-private-property-in-object missing from babel-preset-react-app dependencies HOT 1
- Npx create-react-app: 8 vulnerabilities (2 moderate, 6 high) in new react app HOT 3
- 不动 啊 HOT 1
- React Application Embedded Script HOT 1
- Allow user to config publicPath of webpack and set its default value to auto
- Cannot find module 'ajv/dist/compile/codegen' HOT 2
- I am so angry i just cant take it HOT 2
- An Error HOT 1
- Bad Resource link in https://create-react-app.dev/ HOT 2
- About deprecated packages HOT 1
- Is there a good fork of CRA? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-react-app.