mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
upload.drop.finished undefined if no error.
This commit is contained in:
parent
29b36f5250
commit
e78e19c44b
@ -18,7 +18,7 @@ export interface NekoEvents {
|
||||
// drag and drop events
|
||||
['upload.drop.started']: () => void
|
||||
['upload.drop.progress']: (progressEvent: ProgressEvent) => void
|
||||
['upload.drop.finished']: (error: Error | null) => void
|
||||
['upload.drop.finished']: (error?: Error) => void
|
||||
|
||||
// upload dialog events
|
||||
['upload.dialog.requested']: () => void
|
||||
|
@ -376,8 +376,8 @@
|
||||
},
|
||||
})
|
||||
|
||||
this.events.emit('upload.drop.finished', null)
|
||||
} catch (err) {
|
||||
this.events.emit('upload.drop.finished')
|
||||
} catch (err: any) {
|
||||
this.events.emit('upload.drop.finished', err)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user