Skip to content

Commit

Permalink
Added emulate media
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Jul 18, 2023
1 parent c144aa1 commit 1b49855
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/GeneratePDF.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export default class GeneratePDF extends Command {
deviceScaleFactor,
hasTouch,
isLandscape
})
});

await page.emulateMediaType("screen");

const pf = typeof pdf === "object"
? { ... pdf, path}
Expand Down

0 comments on commit 1b49855

Please sign in to comment.