aboutsummaryrefslogtreecommitdiff
path: root/lib/index.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-11 20:12:04 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-11 20:12:04 +0100
commitc57b900666a82b4ccce033a923e53906255078c0 (patch)
treec8619bf48c3bca17ea3c429194b96c0b3937e16b /lib/index.js
parent57622e1584e7367aa41d4a09f8db33c703a6a0df (diff)
Don't guess what the input for conversion is
Diffstat (limited to 'lib/index.js')
-rw-r--r--lib/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/index.js b/lib/index.js
index 778aad6..fb734e6 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -16,9 +16,9 @@ function Converter(options) {
this._documentConverter = new DocumentConverter(options);
}
-Converter.prototype.convertToHtml = function(docxFile) {
+Converter.prototype.convertToHtml = function(inputOptions) {
var documentConverter = this._documentConverter;
- return docxReader.read(docxFile)
+ return docxReader.read(inputOptions)
.then(function(documentResult) {
return documentResult.mapThen(function(document) {
return documentConverter.convertToHtml(document);