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

Loading…
Cancel
Save