Browse Source

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

fix: shouldPrintBackgrounds -> printBackground
Shelley Vohr 1 year ago
parent
commit
90c7d6c823
1 changed files with 1 additions and 1 deletions
  1. 1 1
      shell/browser/api/electron_api_web_contents.cc

+ 1 - 1
shell/browser/api/electron_api_web_contents.cc

@@ -3149,7 +3149,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");