From afaa6cd60de7e98d36c5a8bb4afe807551ae2598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Sun, 31 Jul 2016 14:24:24 +0200 Subject: [PATCH] Callback support for windows platform --- src/windows/PrinterProxy.js | 4 ++++ 1 file changed, 4 insertions(+) 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()