print with deviceName does not work after migrating to electron v12
mrafei opened this issue · 1 comments
mrafei commented
Hello, I have migrated my application to 12.0.0-beta.11 and I am using @electron/remote v^1.0.2.
I noticed that the following code is not working properly:
const { getCurrentWebContents } = require('@electron/remote')
getCurrentWebContents().print(
{
silent: true,
deviceName: "exampleDevice",
copies: 1,
landscape: false,
margins: { marginType: "none" },
},
This only prints to selected default printer in windows.
appreciate the help.
miniak commented
This issue has nothing to do with remote. It might be this Electron issue electron/electron#30340