object freeze on stored picture

This commit is contained in:
Ali Gator 2022-12-15 12:27:49 +01:00
parent a12b75287e
commit c847e6c218
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@
const reader = new FileReader();
reader.onload = () => {
this.picture.src = reader.result;
this.picture.src = Object.freeze(reader.result);
this.toggle2dDrawFromPicture();
};