Skip to content

Commit

Permalink
Fix #7377: win.print will only print the parent window
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed May 9, 2020
1 parent 353418e commit 0e88f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/api_nw_newwin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit 0e88f65

Please sign in to comment.