File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
new-client/src/plugins/DocumentHandler/printMenu Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -488,16 +488,15 @@ class PrintWindow extends React.PureComponent {
488488 // Add our recently-created DIV to the new window's document
489489 newWindow . document . body . appendChild ( printContent ) ;
490490
491- // We force print to the next upcoming render. Let it render in peace.
492- setTimeout ( ( ) => {
493- // Invoke browser's print dialog - this will block the thread
494- // until user does something with it.
495- newWindow . print ( ) ;
496- // Once the print dialog has disappeared, let's close the new window
497- newWindow . close ( ) ;
498- // When the user closes the print-window we have to do some cleanup...
499- this . handlePrintCompleted ( ) ;
500- } , 25 ) ;
491+ // Invoke browser's print dialog - this will block the thread
492+ // until user does something with it.
493+ newWindow . print ( ) ;
494+
495+ // Once the print dialog has disappeared, let's close the new window
496+ newWindow . close ( ) ;
497+
498+ // When the user closes the print-window we have to do some cleanup...
499+ this . handlePrintCompleted ( ) ;
501500 } ) ;
502501 } ) ;
503502 } ;
You can’t perform that action at this time.
0 commit comments