Skip to content

Commit

Permalink
Modify deprecated Puppeteer method
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Hattori committed Dec 13, 2019
1 parent 71f172e commit bb97a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export class Converter {
await this.usePuppeteer(html, async (page, uri) => {
await page.setViewport(tpl.rendered.size)
await page.goto(uri, { waitUntil: ['domcontentloaded', 'networkidle0'] })
await page.emulateMedia('print')
await page.emulateMediaType('print')

const screenshot = async (pageNumber?: number) => {
await page.evaluate(
Expand Down

0 comments on commit bb97a19

Please sign in to comment.