Open in Chrome instead of default browser
Summary: To avoid the cases whereas Flipper opens up in engineer's default browser which may be different than Chrome. Reviewed By: aigoncharov Differential Revision: D46682220 fbshipit-source-id: 38d0ddefbc67989c5ec97a66e4a419318a66bc95
This commit is contained in:
committed by
Facebook GitHub Bot
parent
12b3c50b56
commit
411695484e
@@ -325,11 +325,19 @@ async function launch() {
|
||||
return;
|
||||
}
|
||||
|
||||
const openInBrowser = () => {
|
||||
open(url.toString(), {app: {name: open.apps.chrome}});
|
||||
};
|
||||
|
||||
if (argv.bundler) {
|
||||
open(url.toString());
|
||||
openInBrowser();
|
||||
} else {
|
||||
const path = await findInstallation();
|
||||
open(path ?? url.toString());
|
||||
if (path) {
|
||||
open(path);
|
||||
} else {
|
||||
openInBrowser();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user