From 90c7d6c82383c237977d33ae3da5eeafa93aefc3 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Tue, 30 Jan 2024 21:47:55 +0100 Subject: [PATCH] fix: `shouldPrintBackgrounds` -> `printBackground` in `webContents.printToPDF` (#41161) fix: shouldPrintBackgrounds -> printBackground --- shell/browser/api/electron_api_web_contents.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/api/electron_api_web_contents.cc b/shell/browser/api/electron_api_web_contents.cc index 9f8e304f0d..bd23e062e5 100644 --- a/shell/browser/api/electron_api_web_contents.cc +++ b/shell/browser/api/electron_api_web_contents.cc @@ -3149,7 +3149,7 @@ v8::Local 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");