Comments (2)
if (shouldTryOpenChromiumWithAppleScript) {
// Will use the first open browser found from list
- var supportedChromiumBrowsers = ['Google Chrome Canary', 'Google Chrome', 'Microsoft Edge', 'Brave Browser', 'Vivaldi', 'Chromium'];
+ var supportedChromiumBrowsers = ['Google Chrome Canary', 'Google Chrome Dev', 'Google Chrome', 'Microsoft Edge', 'Brave Browser', 'Vivaldi', 'Chromium'];
for (var chromiumBrowser of supportedChromiumBrowsers) {
try {
// Try our best to reuse existing tab
// on OSX Chromium-based browser with AppleScript
execSync('ps cax | grep "' + chromiumBrowser + '"');
execSync("osascript ../openChrome.applescript \"".concat(encodeURI(url), "\" ").concat(process.env.OPEN_MATCH_HOST_ONLY === 'true' ? encodeURI(normalizeURLToMatch(url)) : encodeURI(url), " \"").concat(chromiumBrowser, "\""), {
cwd: __dirname,
stdio: 'ignore'
});
return Promise.resolve(true); // eslint-disable-next-line no-unused-vars
} catch (error) {// Ignore errors.
// It it breaks, it will fallback to `opn` anyway
}
}
} // Another special case: on OS X, check if BROWSER has been set to "open".
// In this case, instead of passing `open` to `opn` (which won't work),
// just ignore it (thus ensuring the intended behavior, i.e. opening the system browser):
// https://github.com/facebook/create-react-app/pull/1690#issuecomment-283518768
from better-opn.
Hey, thanks for reaching out. Would you open a PR to add support for Google Chrome Dev?
from better-opn.
Related Issues (13)
- Contribute the features back to upstream `open`? HOT 2
- How to get the opt configuration document ? HOT 5
- Add integration test to see if tab is reused over different run.
- Pass only host to applescript HOT 1
- Instead of opening my default macOS browser, opens Ubuntu VM through Parallels with Chromium HOT 1
- Browser not opened on Windows ARM64 HOT 3
- [feature] Request type file HOT 1
- this url will open twice
- Opening browser causes a change in the window title HOT 4
- Query on setting the default command shell HOT 1
- Colon-delimitation of commands in `BROWSER` is not respected HOT 1
- Should respect OS user preferences rather than default to a "better" browser
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 better-opn.