gluon: make CLI flags for selecting browser easier
This commit is contained in:
parent
c9c4284bb0
commit
e6cac49f8c
@ -31,7 +31,10 @@ const findBrowserPath = async (forceBrowser) => {
|
||||
let whichBrowser = '';
|
||||
|
||||
for (const x of Object.keys(browserPathsWin)) {
|
||||
if (process.argv.includes('--' + x)) whichBrowser = x;
|
||||
if (process.argv.includes('--' + x) || process.argv.includes('--' + x.split('_')[0])) {
|
||||
whichBrowser = x;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!whichBrowser) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user