I am dumb
This commit is contained in:
parent
5ca2e75df3
commit
9c24ac1d05
|
@ -72,7 +72,6 @@ const UserSettings = {
|
|||
const file = e.target.files[0]
|
||||
if (!file) { return }
|
||||
var limit = [this.$store.state.instance.avatarlimit, this.$store.state.instance.bannerlimit, this.$store.state.instance.backgroundlimit]
|
||||
console.log(file.size, limit)
|
||||
if (file.size > limit[slot]) {
|
||||
const filesize = fileSizeFormatService.fileSizeFormat(file.size)
|
||||
const allowedsize = fileSizeFormatService.fileSizeFormat(limit[slot])
|
||||
|
|
Loading…
Reference in New Issue