From 0e88f6515e63647871316c3d1531d71180cf1099 Mon Sep 17 00:00:00 2001 From: Roger Wang Date: Fri, 8 May 2020 18:58:24 -0600 Subject: [PATCH] Fix #7377: win.print will only print the parent window --- src/resources/api_nw_newwin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/api_nw_newwin.js b/src/resources/api_nw_newwin.js index ab34aaf6bb..12d696e516 100644 --- a/src/resources/api_nw_newwin.js +++ b/src/resources/api_nw_newwin.js @@ -583,7 +583,7 @@ NWWindow.prototype.print = function(option) { if (option.pdf_path) _option["printer"] = "Save as PDF"; currentNWWindowInternal.setPrintSettingsInternal(_option, this.cWindow.id); - window.print(); + this.window.print(); // autoprint will be set to false in print_preview_handler.cc after printing is done // window.print will return immediately for PDF window #5002 };