mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 17:07:07 +01:00
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');
|
$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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user