forked from AkkomaGang/akkoma-fe
Remove cropped image size restriction
This commit is contained in:
parent
b6d197ce1d
commit
2132d58075
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ const UserSettings = {
|
|||
reader.readAsDataURL(file)
|
||||
},
|
||||
submitAvatar (cropper) {
|
||||
const img = cropper.getCroppedCanvas({ minWidth: 150, minHeight: 150 }).toDataURL('image/jpeg')
|
||||
const img = cropper.getCroppedCanvas().toDataURL('image/jpeg')
|
||||
return this.$store.state.api.backendInteractor.updateAvatar({ params: { img } }).then((user) => {
|
||||
if (!user.error) {
|
||||
this.$store.commit('addNewUsers', [user])
|
||||
|
|
Loading…
Reference in a new issue