undo skipping crop on 128²
This commit is contained in:
parent
6e43249d64
commit
afc626bae0
10
script.js
10
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");
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue