chore: fix typo in promise rejection (#36763)

This commit is contained in:
Eugene Nesvetaev 2023-01-12 15:32:56 +04:00 committed by GitHub
parent a9c03950c0
commit ce56d614a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -272,7 +272,7 @@ WebContents.prototype.printToPDF = async function (options) {
if (options.pageRanges !== undefined) { if (options.pageRanges !== undefined) {
if (typeof options.pageRanges !== 'string') { if (typeof options.pageRanges !== 'string') {
return Promise.reject(new Error('printBackground must be a String')); return Promise.reject(new Error('pageRanges must be a String'));
} }
printSettings.pageRanges = options.pageRanges; printSettings.pageRanges = options.pageRanges;
} }