fix: shouldPrintBackgrounds -> printBackground in webContents.printToPDF (#41179)

fix: shouldPrintBackgrounds -> printBackground

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2024-01-31 10:48:30 +01:00
committed by GitHub
parent 59f50c75fc
commit 865a72fe34

View File

@@ -3110,7 +3110,7 @@ v8::Local<v8::Promise> WebContents::PrintToPDF(const base::Value& settings) {
auto landscape = settings.GetDict().FindBool("landscape");
auto display_header_footer =
settings.GetDict().FindBool("displayHeaderFooter");
auto print_background = settings.GetDict().FindBool("shouldPrintBackgrounds");
auto print_background = settings.GetDict().FindBool("printBackground");
auto scale = settings.GetDict().FindDouble("scale");
auto paper_width = settings.GetDict().FindDouble("paperWidth");
auto paper_height = settings.GetDict().FindDouble("paperHeight");