From 2e0bc4a94eb9f1cfa9a85d435f7c3a793d9b0323 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Thu, 17 Feb 2022 00:15:21 +0300 Subject: [PATCH] raspberry pi comatability --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 799771e..75cd67c 100644 --- a/index.js +++ b/index.js @@ -3,10 +3,9 @@ const items = require('./items') const output = require('./output'); (async () => { - const browser = await puppeteer.launch({ - headless: true - }) + const browser = await puppeteer.launch({ executablePath: 'chromium-browser' }) const page = await browser.newPage() + await page.setDefaultNavigationTimeout(0) for (const item of items) { console.log(`Looking at ${item.name}`)