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()