fix double import on char card drop

This commit is contained in:
RossAscends 2023-08-13 01:47:33 +09:00
parent 116f80d952
commit f434a96ad6

View File

@ -8994,7 +8994,9 @@ $(document).ready(function () {
$dropzone.removeClass('dragover'); $dropzone.removeClass('dragover');
const files = Array.from(event.originalEvent.dataTransfer.files); 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); processDroppedFiles(files);
}); });