From 113dde9f0a3354988129fe441f81226310fab137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Wed, 30 Jan 2019 12:18:18 +0100 Subject: [PATCH] Apple Windows crash fix --- src/windows/PrinterProxy.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/windows/PrinterProxy.js b/src/windows/PrinterProxy.js index 62ad3a2..f7989bd 100644 --- a/src/windows/PrinterProxy.js +++ b/src/windows/PrinterProxy.js @@ -114,7 +114,9 @@ exports.onPrintTaskRequested = function (event) { task.options.duplex = Printing.PrintDuplex.oneSided; } - task.options.numberOfCopies = config.copies || 1; + try { + task.options.numberOfCopies = config.copies || 1; + } catch (e) {} task.oncompleted = function (e) { exports._func(e.detail[0].completion == 3);