diff --git a/index.ts b/index.ts index 6835eb5..14d6ed3 100644 --- a/index.ts +++ b/index.ts @@ -6,7 +6,6 @@ import puppeteer from "puppeteer-extra"; import StealthPlugin from "puppeteer-extra-plugin-stealth"; import PluginREPL from "puppeteer-extra-plugin-repl"; import { LunchMoney } from "lunch-money"; -import isPi from "detect-rpi"; puppeteer.use(StealthPlugin()); puppeteer.use(PluginREPL()); @@ -28,13 +27,9 @@ async function getBrowser() { ], }; - if (isPi()) { - puppeteerOpts.executablePath = "/usr/bin/chromium"; - puppeteerOpts.args!.push("--no-sandbox"); - } else { - // https://stackoverflow.com/questions/74251875/puppeteer-error-an-executablepath-or-channel-must-be-specified-for-puppete - puppeteerOpts.executablePath = executablePath(); - } + puppeteerOpts.args!.push("--no-sandbox"); + // https://stackoverflow.com/questions/74251875/puppeteer-error-an-executablepath-or-channel-must-be-specified-for-puppete + puppeteerOpts.executablePath = executablePath(); return await puppeteer.launch(puppeteerOpts); }