aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/web.js3
1 files changed, 1 insertions, 2 deletions
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",