Update ImportHandler.js
This commit is contained in:
parent
6d38b05623
commit
b74c43889e
@ -117,7 +117,6 @@ exports.doImport = function(req, res, padId)
|
|||||||
var fileEnding = path.extname(srcFile).toLowerCase();
|
var fileEnding = path.extname(srcFile).toLowerCase();
|
||||||
var fileIsHTML = (fileEnding === ".html" || fileEnding === ".htm");
|
var fileIsHTML = (fileEnding === ".html" || fileEnding === ".htm");
|
||||||
if (abiword && !fileIsHTML) {
|
if (abiword && !fileIsHTML) {
|
||||||
console.warn("Using abiword");
|
|
||||||
abiword.convertFile(srcFile, destFile, "htm", function(err) {
|
abiword.convertFile(srcFile, destFile, "htm", function(err) {
|
||||||
//catch convert errors
|
//catch convert errors
|
||||||
if(err) {
|
if(err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user