Add chrome path to options.json

This commit is contained in:
PAlexanderFranklin 2024-01-15 17:26:14 -08:00
parent a8bb7a29ec
commit e46ef5daa8
2 changed files with 3 additions and 2 deletions

View File

@ -2,5 +2,6 @@
"uberPhoneNumber": "1234567891",
"startDateIso": "2023-01-01",
"endDateIso": "2023-12-31",
"uberPath": "./uberResults.json"
"uberPath": "./uberResults.json",
"chromeExecutable": "/usr/bin/chromium"
}

View File

@ -9,7 +9,7 @@ async function main() {
const browser = await puppeteer.launch({
headless: false,
ignoreHTTPSErrors: true,
executablePath: "/usr/bin/chromium",
executablePath: options.chromeExecutable ?? "/usr/bin/chromium",
})
try {
const page = await browser.newPage()