From c57b900666a82b4ccce033a923e53906255078c0 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 11 Apr 2013 20:12:04 +0100 Subject: Don't guess what the input for conversion is --- lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/index.js') 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); -- cgit v1.2.3