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
|
* 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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user