Skip to content

Commit

Permalink
Update browser.js
Browse files Browse the repository at this point in the history
Make it easy to get the code running om Raspberry Pi platform.
  • Loading branch information
soeren-b-c committed Dec 18, 2022
1 parent 4de60c6 commit 340eba9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ const browserLogin = async (school) => {
'--no-zygote',
],
headless: IS_HEADLESS,
// If on Raspberry Pi, uncomment line below after
// installing chromium via apt (or similar)
// See https://github.com/puppeteer/puppeteer/issues/7917
// and https://github.com/soeren-b-c/lectio-skema-til-.ics-kalender/issues/24
//executablePath: '/usr/bin/chromium-browser',
});

page = await browser.newPage();
Expand Down

0 comments on commit 340eba9

Please sign in to comment.