Skip to content

Commit

Permalink
fix: update puppeteer to 23.2.0 (#668)
Browse files Browse the repository at this point in the history
Co-authored-by: Marius Bakas <marius.bakas@barbora.lt>
  • Loading branch information
bakasmarius and Marius Bakas authored Aug 28, 2024
1 parent 6de5cf0 commit a1c77c3
Show file tree
Hide file tree
Showing 3 changed files with 564 additions and 323 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 pass `pdf` paramater.
* Generates PDF if user passes `pdf` parameter.
*/
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 incompatabilities and gives React more control of events),
// React uses its own events system with SyntheticEvents (prevents browser incompatibilities 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 a1c77c3

Please sign in to comment.