diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-01-06 17:59:09 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-01-06 17:59:09 +0000 |
| commit | 552f0309fcc96fdf12dd2ed9db309093ba3af281 (patch) | |
| tree | 491000217061ed7ef60adb5df4c888190fd02151 | |
| parent | 3f3390e37b47dca2ebf6ce9369b402589c1a58ff (diff) | |
Use options passed to convertArrayBufferToHtml
| -rw-r--r-- | lib/browser.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/browser.js b/lib/browser.js index 695f5dc..a9b9dbd 100644 --- a/lib/browser.js +++ b/lib/browser.js @@ -23,7 +23,7 @@ function convertArrayBufferToHtml(arrayBuffer, options, callback) { try { var file = openFile(arrayBuffer); var result = mammoth.read({file: file}).then(function(documentResult) { - var options = mammoth.standardOptions; + options = options || mammoth.standardOptions; return mammoth.convertDocumentToHtml(documentResult, options); }); satisfyCallback(result, callback); |
