window.todesktop.contents.print(
Skips the browser print dialog and begins printing.
Boolean. Optional. Defaults to false.
Print the background color and image of the page.
Boolean. Optional. Defaults to false.
Set the printer to use. You can get the available
printer names with window.todesktop.contents.getPrinters()
String. Optional. Defaults to ''.
deviceName: 'EPSON_WF_7610_Series'
success will be a boolean indicating whether or not
the printing call was successful.
? console.log('Printed successfully.')
: console.error('Could not print the page.')