We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NWJS Version : 0.31 Operating System : Windows 7 (32 bits)
Callback function must receive an array of json objects representing the available printers
Callback function receives an unique object (1 printer) not an array of printers json objects.
This code must work: enumerate printers and outputs to console the printer name.
win.getPrinters( function(printers){ printers.map(printer=>console.log("Printer is", printer.printerName)); });
But a "printers.map is not a function" error is raised because "printers" is not an array.
The text was updated successfully, but these errors were encountered:
Thanks for reporting. This is #6663 which was just fixed.
Sorry, something went wrong.
No branches or pull requests
NWJS Version : 0.31
Operating System : Windows 7 (32 bits)
Expected behavior
Callback function must receive an array of json objects representing the available printers
Actual behavior
Callback function receives an unique object (1 printer) not an array of printers json objects.
How to reproduce
This code must work: enumerate printers and outputs to console the printer name.
But a "printers.map is not a function" error is raised because "printers" is not an array.
The text was updated successfully, but these errors were encountered: