mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-22 07:46:17 -04:00
Update ui.js
This commit is contained in:
parent
59360fb047
commit
10d1b46cfd
1 changed files with 6 additions and 4 deletions
|
@ -590,10 +590,12 @@ class PeerUI {
|
|||
_onFilesSelected(e) {
|
||||
const $input = e.target;
|
||||
const files = $input.files;
|
||||
Events.fire('files-selected', {
|
||||
files: files,
|
||||
to: this._peer.id
|
||||
});
|
||||
if (files.length > 0) {
|
||||
Events.fire('files-selected', {
|
||||
files: files,
|
||||
to: this._peer.id
|
||||
});
|
||||
}
|
||||
$input.files = null; // reset input
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue