From e169eee3f4a9c99571bf7e33493da506078e100e Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Tue, 13 Dec 2022 20:10:57 +0000 Subject: [PATCH] gluon/paths: chrome_stable -> chrome --- gluon/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gluon/index.js b/gluon/index.js index bdd3adc..9e26789 100644 --- a/gluon/index.js +++ b/gluon/index.js @@ -15,7 +15,7 @@ const __dirname = dirname(__filename); const browserPaths = ({ win32: process.platform === 'win32' && { - chrome_stable: join(process.env.PROGRAMFILES, 'Google', 'Chrome', 'Application', 'chrome.exe'), + chrome: join(process.env.PROGRAMFILES, 'Google', 'Chrome', 'Application', 'chrome.exe'), chrome_canary: join(process.env.LOCALAPPDATA, 'Google', 'Chrome SxS', 'Application', 'chrome.exe'), edge: join(process.env['PROGRAMFILES(x86)'], 'Microsoft', 'Edge', 'Application', 'msedge.exe'), @@ -75,7 +75,7 @@ const findBrowserPath = async (forceBrowser) => { return [ browserPaths[whichBrowser], whichBrowser ]; }; -const getFriendlyName = whichBrowser => whichBrowser[0].toUpperCase() + whichBrowser.slice(1).replace(/[a-z]_[a-z]/g, _ => _[0] + ' ' + _[2].toUpperCase()).replace(' Stable', ''); +const getFriendlyName = whichBrowser => whichBrowser[0].toUpperCase() + whichBrowser.slice(1).replace(/[a-z]_[a-z]/g, _ => _[0] + ' ' + _[2].toUpperCase()); const getDataPath = () => join(__dirname, '..', 'chrome_data'); const startBrowser = async (url, { windowSize, forceBrowser }) => {