mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
Update main.js
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user