From 9dc130b258c8320a3cd12e2afb002ebbe2155e9a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 6 Jan 2014 22:38:29 +0000 Subject: Fix lib/web.js --- lib/web.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/web.js b/lib/web.js index 38e0cd9..9a5ada2 100644 --- a/lib/web.js +++ b/lib/web.js @@ -53,11 +53,10 @@ function handleConvert(request, response, next) { return next(); } - var converter = new mammoth.Converter(mammoth.standardOptions); var uploadedDocument = request.files.document; var documentPath = uploadedDocument.path; - converter.convertToHtml({path: documentPath}) + mammoth.convertToHtml({path: documentPath}) .then(function(result) { request.template = { name: "convert.html", -- cgit v1.2.3