Skip to content

Commit 0e88f65

Browse files
committed
Fix nwjs#7377: win.print will only print the parent window
1 parent 353418e commit 0e88f65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/api_nw_newwin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ NWWindow.prototype.print = function(option) {
583583
if (option.pdf_path)
584584
_option["printer"] = "Save as PDF";
585585
currentNWWindowInternal.setPrintSettingsInternal(_option, this.cWindow.id);
586-
window.print();
586+
this.window.print();
587587
// autoprint will be set to false in print_preview_handler.cc after printing is done
588588
// window.print will return immediately for PDF window #5002
589589
};

0 commit comments

Comments
 (0)