Fix infinite spinner when converting odt triggers errors

pull/1/head
yflory 3 years ago
parent 6541317f62
commit 9ef6cd90e5

@ -182,10 +182,18 @@ define([
+ getToId(outputFormat) + getToId(outputFormat)
+ "<m_bIsNoBase64>false</m_bIsNoBase64>" + "<m_bIsNoBase64>false</m_bIsNoBase64>"
+ "</TaskQueueDataConvert>"; + "</TaskQueueDataConvert>";
// writing params file to mounted working disk (in memory) // writing params file to mounted working disk (in memory)
x2t.FS.writeFile('/working/params.xml', params); x2t.FS.writeFile('/working/params.xml', params);
// running conversion try {
x2t.ccall("runX2T", ["number"], ["string"], ["/working/params.xml"]); // running conversion
x2t.ccall("runX2T", ["number"], ["string"], ["/working/params.xml"]);
} catch (e) {
console.error(e);
return "";
}
// reading output file from working disk (in memory) // reading output file from working disk (in memory)
var result; var result;
try { try {

Loading…
Cancel
Save