gluon: remove stable suffix in friendly product name

This commit is contained in:
CanadaHonk 2022-12-13 15:07:34 +00:00
parent c5058b385f
commit c9c4284bb0

View File

@ -50,7 +50,7 @@ const findBrowserPath = async (forceBrowser) => {
return [ browserPathsWin[whichBrowser], whichBrowser ];
};
const getFriendlyName = whichBrowser => whichBrowser[0].toUpperCase() + whichBrowser.slice(1).replace(/[a-z]_[a-z]/g, _ => _[0] + ' ' + _[2].toUpperCase());
const getFriendlyName = whichBrowser => whichBrowser[0].toUpperCase() + whichBrowser.slice(1).replace(/[a-z]_[a-z]/g, _ => _[0] + ' ' + _[2].toUpperCase()).replace(' Stable', '');
const getDataPath = () => join(__dirname, '..', 'chrome_data');
const startBrowser = async (url, { windowSize, forceBrowser }) => {