From 5a96b198a400f61ded745b233aef4458337952a2 Mon Sep 17 00:00:00 2001 From: Mariusz Kierski Date: Sat, 12 Jul 2014 19:04:17 +0200 Subject: [PATCH] Added a ready notification --- texwrapper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/texwrapper.js b/texwrapper.js index ddf8f8e..5814ecb 100644 --- a/texwrapper.js +++ b/texwrapper.js @@ -126,6 +126,7 @@ module.exports = function(doc, options) { fse.remove(dirpath); }); stream.pipe(result); + result.emit("ready"); } else { handleErrors(dirpath, result); }