updated docs v5

This commit is contained in:
Sebastian Hildebrandt
2021-01-25 19:03:20 +01:00
parent c142bc9645
commit dae9b9348c
6 changed files with 150 additions and 36 deletions
+4 -1
View File
@@ -190,7 +190,10 @@ function printer(callback) {
if (!error) {
const parts = stdout.toString().split(/\n\s*\n/);
for (let i = 0; i < parts.length; i++) {
result.push(parseWindowsPrinters(parts[i].split('\n'), i));
const printer = parseWindowsPrinters(parts[i].split('\n'), i);
if (printer.name || printer.model) {
result.push(parseWindowsPrinters(parts[i].split('\n'), i));
}
}
}
if (callback) {