Skip to content

Commit

Permalink
fix: preferCSSPageSize error type (#38791)
Browse files Browse the repository at this point in the history
fix: preferCSSPageSize error type

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed Jun 14, 2023
1 parent 4249800 commit 31b0daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/api/web-contents.ts
Expand Up @@ -317,7 +317,7 @@ WebContents.prototype.printToPDF = async function (options) {

if (options.preferCSSPageSize !== undefined) {
if (typeof options.preferCSSPageSize !== 'boolean') {
return Promise.reject(new Error('footerTemplate must be a String'));
return Promise.reject(new Error('preferCSSPageSize must be a Boolean'));
}
printSettings.preferCSSPageSize = options.preferCSSPageSize;
}
Expand Down

0 comments on commit 31b0daa

Please sign in to comment.