From e46ef5daa8e6ec319165a7d5e5eedde1d204c6cf Mon Sep 17 00:00:00 2001 From: PAlexanderFranklin Date: Mon, 15 Jan 2024 17:26:14 -0800 Subject: [PATCH] Add chrome path to options.json --- options.json.example | 3 ++- src/index.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/options.json.example b/options.json.example index c56c0f8..9369f85 100644 --- a/options.json.example +++ b/options.json.example @@ -2,5 +2,6 @@ "uberPhoneNumber": "1234567891", "startDateIso": "2023-01-01", "endDateIso": "2023-12-31", - "uberPath": "./uberResults.json" + "uberPath": "./uberResults.json", + "chromeExecutable": "/usr/bin/chromium" } diff --git a/src/index.js b/src/index.js index b83b5df..77318ac 100644 --- a/src/index.js +++ b/src/index.js @@ -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()