Update main.js

This commit is contained in:
Kyle
2019-12-25 12:08:18 -08:00
parent ac14ebbe44
commit 83a4fc94f2

View File

@@ -747,7 +747,7 @@ function autocrop(targetImage, source = targetImage.src) {
cropCanvas.height = height + 1; cropCanvas.height = height + 1;
cropContext.putImageData(cropped, 0, 0); cropContext.putImageData(cropped, 0, 0);
//Saves the newly cropped image to the given image //Saves the newly cropped image to the given image
targetImage.src = cropCanvas.toDataURL(); setTimeout(function() {targetImage.src = cropCanvas.toDataURL();}, 100)
} }
} }
} }