.
This commit is contained in:
@@ -84,7 +84,9 @@
|
||||
for (let j = 0; j < inputs.length; j++) {
|
||||
i = inputs.get(j);
|
||||
console.log(i)
|
||||
files.add(i.files[0]);
|
||||
if (i.files.length > 0) {
|
||||
files.add(i.files[0]);
|
||||
}
|
||||
console.log(i.files)
|
||||
}
|
||||
return files;
|
||||
@@ -286,14 +288,15 @@
|
||||
for (var i = 0; i < items.length; i++) {
|
||||
|
||||
files_to_add.add(await items[i].handle
|
||||
.getFile());
|
||||
.getFile());
|
||||
}
|
||||
current_files = getCurrentFiles();
|
||||
console.log("1", files_to_add, current_files);
|
||||
let distinct_set = new Set([...files_to_add].filter(
|
||||
x => !current_files.has(x)));
|
||||
|
||||
console.log("distinct set", distinct_set.length, items);
|
||||
console.log("distinct set", distinct_set.length,
|
||||
items);
|
||||
extendInputs(distinct_set.length);
|
||||
distinct_set.forEach((file) => {
|
||||
addFile(file, false);
|
||||
|
||||
Reference in New Issue
Block a user