Add chrome path to options.json
This commit is contained in:
parent
a8bb7a29ec
commit
e46ef5daa8
@ -2,5 +2,6 @@
|
|||||||
"uberPhoneNumber": "1234567891",
|
"uberPhoneNumber": "1234567891",
|
||||||
"startDateIso": "2023-01-01",
|
"startDateIso": "2023-01-01",
|
||||||
"endDateIso": "2023-12-31",
|
"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({
|
const browser = await puppeteer.launch({
|
||||||
headless: false,
|
headless: false,
|
||||||
ignoreHTTPSErrors: true,
|
ignoreHTTPSErrors: true,
|
||||||
executablePath: "/usr/bin/chromium",
|
executablePath: options.chromeExecutable ?? "/usr/bin/chromium",
|
||||||
})
|
})
|
||||||
try {
|
try {
|
||||||
const page = await browser.newPage()
|
const page = await browser.newPage()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user