-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Vivaldi & Brave browsers for "openChrome.applescript" #8264
Comments
Have you tried the |
@heyimalex, I have and this does not work. This being because the BROWSER env arg is not being used in the references applescript (see here: https://github.com/facebook/create-react-app/blob/master/packages/react-dev-utils/openChrome.applescript). Furthermore, simply changing all occurrences of "chrome" / "google chrome" in the applescript and the |
Ok, I think I misunderstood. So you can absolutely get create-react-app to launch Vivaldi and Brave, it'll just open a new tab every time you run |
That's correct, that's the behaviour it has for Chrome and since Vivaldi and Brave are Chromium based browsers I would assumed that it should be possible. |
I came across this looking for a different issue and it sounded fun, so I got it to work. Basically it would require:
I would be happy to submit a PR if it would be beneficial. |
I think that would be great @handeyeco. It sounds like a good solution. As for the chromium browsers, how are we going to detect which to target? For example I personally have both Chrome and Vivaldi installed but I never use Chrome - it's only really there just in case something misbehaves in Vivaldi for one reason or another. And I would of course want it to not just open Chrome suddenly. As for a list of them, what comes to mind is the following list, in no particular order:
It also looks like Wikipedia has a list of Chromium based browsers: https://en.wikipedia.org/wiki/Chromium_(web_browser)#Browsers_based_on_Chromium |
@favna, my current solution goes down the list looking for open browsers and if there are none in that list, it opens your default browser. So:
Tested and works: ✅ Google Chrome Tested and doesn't work: ❌ Opera I'll test again, clean up my code, and submit a PR. Hopefully they'll let it in! Not that it will affect me, I'm on Firefox. |
Is your proposal related to a problem?
No, it is a new feature that is currently non-existing.
Currently there react-dev-utils package has an applescript "openChrome" which tries to reload a pre-existing webpack dev server tab in Chrome rather than opening a new tab. However in fairly recent times the Vivaldi and Brave browsers have gained a lot of popularity in the dev communities, at least those that I frequent. As a user of Vivaldi myself I would really appreciate it if the React dev server would also check for Vivaldi / Brave for the similar behaviour.
Describe the solution you'd like
The script should be modified or any such other modification made so that Vivaldi and Brave browsers are also supported
Describe alternatives you've considered
There are no alternatives to this problem, other than forcibly using Chrome exclusively for Dev but this would mean having to change default browser every time I and my peers would work on a React app which is extremely unreasonable.
Additional context
N.A.
The text was updated successfully, but these errors were encountered: