From f099a352b3911f5f243ae8a7172ac16c917ce1a8 Mon Sep 17 00:00:00 2001 From: j433866 Date: Tue, 23 Apr 2019 09:01:25 +0100 Subject: [PATCH] Change get input function calls --- src/web/ControlsWaiter.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/ControlsWaiter.mjs b/src/web/ControlsWaiter.mjs index a3f74e29..c57bb0dd 100755 --- a/src/web/ControlsWaiter.mjs +++ b/src/web/ControlsWaiter.mjs @@ -58,7 +58,7 @@ class ControlsWaiter { */ bakeClick() { if (document.getElementById("bake").textContent.indexOf("Bake") > 0) { - this.app.bake(); + this.app.manager.input.getAll(); } else { this.manager.worker.cancelBake(); } @@ -123,7 +123,7 @@ class ControlsWaiter { window.location.host + window.location.pathname; const recipeStr = Utils.generatePrettyRecipe(recipeConfig); - const inputStr = toBase64(this.app.getInput(), "A-Za-z0-9+/"); // B64 alphabet with no padding + const inputStr = toBase64(this.app.getInput().input, "A-Za-z0-9+/"); // B64 alphabet with no padding includeRecipe = includeRecipe && (recipeConfig.length > 0); // Only inlcude input if it is less than 50KB (51200 * 4/3 as it is Base64 encoded)