From 83a4fc94f29e3319e964560adaa58dc3c38bd21a Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Wed, 25 Dec 2019 12:08:18 -0800 Subject: [PATCH] Update main.js --- data/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/scripts/main.js b/data/scripts/main.js index 57bc49e6..e37cb64b 100644 --- a/data/scripts/main.js +++ b/data/scripts/main.js @@ -747,7 +747,7 @@ function autocrop(targetImage, source = targetImage.src) { cropCanvas.height = height + 1; cropContext.putImageData(cropped, 0, 0); //Saves the newly cropped image to the given image - targetImage.src = cropCanvas.toDataURL(); + setTimeout(function() {targetImage.src = cropCanvas.toDataURL();}, 100) } } }