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