From 97c218cb4ca1598d39fe962fd4704c725cb65514 Mon Sep 17 00:00:00 2001 From: j433866 Date: Tue, 7 May 2019 12:00:14 +0100 Subject: [PATCH] Fix where zipworker was using output presented result. Now uses the raw dish value --- src/web/ZipWorker.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/web/ZipWorker.mjs b/src/web/ZipWorker.mjs index 1c44d183..039b1e32 100644 --- a/src/web/ZipWorker.mjs +++ b/src/web/ZipWorker.mjs @@ -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}); }