Browse Source

fix: default to simplex for printing DuplexMode (#24547)

Shelley Vohr 4 years ago
parent
commit
8ad7e2213d
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

@@ -2020,7 +2020,7 @@ void WebContents::Print(gin_helper::Arguments* args) {
   }
 
   // Duplex type user wants to use.
-  printing::DuplexMode duplex_mode;
+  printing::DuplexMode duplex_mode = printing::SIMPLEX;
   options.Get("duplexMode", &duplex_mode);
   settings.SetIntKey(printing::kSettingDuplexMode, duplex_mode);