Electron print without dialog (silent print)

I just need to use electron js to build my desktop app, I use simple BrowserWindow to load my website in the application. I added some functionality to reload the window when the connection issues so when the internet turn-on again the app will reload the page so it will not show “Page not found”. In my web page it received an orders and print it to receipt printer, I don’t want the print dialog show out, is there any solution to print the receipt silently? I know the way how to print it silent with the firefox but I

How to override standard browser print and print an iframe by default

I have a documentation type page with an iframe inside. I’m trying to override standard browser print (Ctrl + p) to print contents of an iframe only. I know how to print an iframe content using …

Auto start print html page using javascript

Is there anyway to automatically run javascript:window.print() when the page finishes loading?