Improve destroy function

This commit is contained in:
2025-08-27 12:47:15 +03:00
Unverified
parent 4aecc6499c
commit c2d709c468
@@ -214,8 +214,6 @@ export class ImageCropper {
* Destroys the cropper and removes the canvas from DOM * Destroys the cropper and removes the canvas from DOM
*/ */
destroy(): void { destroy(): void {
if (this.canvas.parentNode) { this.canvas.remove();
this.canvas.parentNode.removeChild(this.canvas);
}
} }
} }