forked from AkkomaGang/akkoma-fe
I am dumb
This commit is contained in:
parent
5ca2e75df3
commit
9c24ac1d05
1 changed files with 0 additions and 1 deletions
|
@ -72,7 +72,6 @@ const UserSettings = {
|
||||||
const file = e.target.files[0]
|
const file = e.target.files[0]
|
||||||
if (!file) { return }
|
if (!file) { return }
|
||||||
var limit = [this.$store.state.instance.avatarlimit, this.$store.state.instance.bannerlimit, this.$store.state.instance.backgroundlimit]
|
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]) {
|
if (file.size > limit[slot]) {
|
||||||
const filesize = fileSizeFormatService.fileSizeFormat(file.size)
|
const filesize = fileSizeFormatService.fileSizeFormat(file.size)
|
||||||
const allowedsize = fileSizeFormatService.fileSizeFormat(limit[slot])
|
const allowedsize = fileSizeFormatService.fileSizeFormat(limit[slot])
|
||||||
|
|
Loading…
Reference in a new issue