mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Fix javascript bug in receive mode when files is disabled
This commit is contained in:
parent
b630a92d5e
commit
6a9878a33e
@ -15,10 +15,10 @@ $(function () {
|
||||
var formData = new FormData();
|
||||
|
||||
// Files
|
||||
var filenames = [];
|
||||
var $fileSelect = $('#file-select');
|
||||
if ($fileSelect.length > 0) {
|
||||
var files = $fileSelect.get(0).files;
|
||||
var filenames = [];
|
||||
for (var i = 0; i < files.length; i++) {
|
||||
var file = files[i];
|
||||
filenames.push(file.name);
|
||||
|
Loading…
Reference in New Issue
Block a user