From afc626bae0803cb7a856ffcda560b003a876c2dc Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sun, 8 Nov 2020 20:07:26 +0000 Subject: [PATCH] =?UTF-8?q?undo=20skipping=20crop=20on=20128=C2=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/script.js b/script.js index 73a3d87..035ed15 100644 --- a/script.js +++ b/script.js @@ -165,15 +165,7 @@ async function run() { buttonImageProceed.removeAttribute("disabled"); } - if (load_image(e.target.result) === "128×128") { - // we can't just do `buttonImageProceed.click()` - // because this calls the handleImage() function, which we don't want here - el("page-image").style.display = "none"; - el("page-room").style.display = "block"; - loadPreview(); - } else { - cropper.loadImage(e.target.result); - } + cropper.loadImage(e.target.result); }, "image"); });