Add chrome path to options.json
This commit is contained in:
parent
a8bb7a29ec
commit
e46ef5daa8
@ -2,5 +2,6 @@
|
||||
"uberPhoneNumber": "1234567891",
|
||||
"startDateIso": "2023-01-01",
|
||||
"endDateIso": "2023-12-31",
|
||||
"uberPath": "./uberResults.json"
|
||||
"uberPath": "./uberResults.json",
|
||||
"chromeExecutable": "/usr/bin/chromium"
|
||||
}
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user