mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Improve destroy function
This commit is contained in:
@@ -214,8 +214,6 @@ export class ImageCropper {
|
||||
* Destroys the cropper and removes the canvas from DOM
|
||||
*/
|
||||
destroy(): void {
|
||||
if (this.canvas.parentNode) {
|
||||
this.canvas.parentNode.removeChild(this.canvas);
|
||||
}
|
||||
this.canvas.remove();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user