Fix where zipworker was using output presented result.

Now uses the raw dish value
This commit is contained in:
j433866 2019-05-07 12:00:14 +01:00
parent 07021b8dd5
commit 97c218cb4c
1 changed files with 3 additions and 3 deletions

View File

@ -53,10 +53,10 @@ self.zipFiles = function(outputs, filename, fileExtension) {
let output;
if (outputs[iNum].data === null) {
output = new Uint8Array(0);
} else if (typeof outputs[iNum].data.result === "string") {
output = new Uint8Array(Utils.strToArrayBuffer(outputs[iNum].data.result));
} else if (typeof outputs[iNum].data.dish.value === "string") {
output = new Uint8Array(Utils.strToArrayBuffer(outputs[iNum].data.dish.value));
} else {
output = new Uint8Array(outputs[iNum].data.result);
output = new Uint8Array(outputs[iNum].data.dish.value);
}
zip.addFile(output, {filename: name});
}