gluon: make CLI flags for selecting browser easier

This commit is contained in:
CanadaHonk 2022-12-13 15:08:15 +00:00
parent c9c4284bb0
commit e6cac49f8c

View File

@ -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) {