aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-01-06 22:38:29 +0000
committerMichael Williamson <mike@zwobble.org>2014-01-06 22:38:29 +0000
commit9dc130b258c8320a3cd12e2afb002ebbe2155e9a (patch)
treea3cfa22a9dcf515682f14cb7eeb0e860787d0f22 /lib
parent45cf78a6eba8902d0822a1ad5fdbd19a5b024ab7 (diff)
Fix lib/web.js
Diffstat (limited to 'lib')
-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",