fix double import on char card drop
This commit is contained in:
parent
116f80d952
commit
f434a96ad6
|
@ -8994,7 +8994,9 @@ $(document).ready(function () {
|
|||
$dropzone.removeClass('dragover');
|
||||
|
||||
const files = Array.from(event.originalEvent.dataTransfer.files);
|
||||
await importFromURL(event.originalEvent.dataTransfer.items, files);
|
||||
if (!files.length) {
|
||||
await importFromURL(event.originalEvent.dataTransfer.items, files);
|
||||
}
|
||||
processDroppedFiles(files);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue