mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix upload dialog files - forEach not found.
This commit is contained in:
parent
7c2550fc28
commit
ba931ea52e
@ -379,7 +379,7 @@
|
|||||||
this.uploadActive = true
|
this.uploadActive = true
|
||||||
this.uploadProgress = 0
|
this.uploadProgress = 0
|
||||||
try {
|
try {
|
||||||
await this.neko.room.uploadDialog(files, {
|
await this.neko.room.uploadDialog([...files], {
|
||||||
onUploadProgress: (progressEvent: ProgressEvent) => {
|
onUploadProgress: (progressEvent: ProgressEvent) => {
|
||||||
this.uploadProgress = (progressEvent.loaded / progressEvent.total) * 100
|
this.uploadProgress = (progressEvent.loaded / progressEvent.total) * 100
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user