Skip to content

Commit

Permalink
Revert "fix: update puppeteer to 23.2.0 (#668)"
Browse files Browse the repository at this point in the history
This reverts commit a1c77c3.
  • Loading branch information
derberg authored Sep 2, 2024
1 parent 98fd63e commit 863368b
Show file tree
Hide file tree
Showing 3 changed files with 323 additions and 564 deletions.
4 changes: 2 additions & 2 deletions hooks/99_generatePdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const puppeteer = require('puppeteer');
const path = require('path');

/**
* Generates PDF if user passes `pdf` parameter.
* Generates PDF if user pass `pdf` paramater.
*/
module.exports = {
'generate:after': async ({ templateParams = {}, targetDir }) => {
Expand All @@ -23,7 +23,7 @@ module.exports = {
// Hide burger-menu in pdf
await page.evaluate(() => { document.querySelector('.burger-menu').style.display = 'none'; });

// React uses its own events system with SyntheticEvents (prevents browser incompatibilities and gives React more control of events),
// React uses its own events system with SyntheticEvents (prevents browser incompatabilities and gives React more control of events),
// so we must use `{ bubbles: true }`
await page.$$eval('button > svg', chevrons => chevrons.forEach(chevron => {
const button = chevron.parentElement;
Expand Down
Loading

0 comments on commit 863368b

Please sign in to comment.