This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new ba11b598 Need executablePath on later versions of Ubuntu
ba11b598 is described below
commit ba11b59862ab7567f8111a359aa32ee71655dd1d
Author: Sebb <[email protected]>
AuthorDate: Mon Sep 23 15:45:18 2024 +0100
Need executablePath on later versions of Ubuntu
---
tools/scan-page.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/scan-page.js b/tools/scan-page.js
index 09f431f6..4b10bc1c 100755
--- a/tools/scan-page.js
+++ b/tools/scan-page.js
@@ -33,7 +33,8 @@ function getHost(url) {
// new fails with:
// Error: Failed to launch the browser process!
// chrome_crashpad_handler: --database is required
- const browser = await puppeteer.launch({headless: "old"});
+ // Need executablePath on later versions of Ubuntu
+ const browser = await puppeteer.launch({headless: "old", executablePath:
'/opt/google/chrome/chrome'});
const page = await browser.newPage();
await page.setRequestInterception(true);
page.on('request', (interceptedRequest) => {