diff --git a/src/windows/PrinterProxy.js b/src/windows/PrinterProxy.js index cdd74a0..f0e1131 100644 --- a/src/windows/PrinterProxy.js +++ b/src/windows/PrinterProxy.js @@ -91,6 +91,10 @@ exports.onPrintTaskRequested = function (event) { task = event.request.createPrintTask(config.name, function (args) { args.setSource(exports._page); }); + + task.oncompleted = function (e) { + exports._func(e.detail[0].completion == 3); + }; }; PrintManager.getForCurrentView()