forked from Alex/Pterodactyl-Panel
Don't try to upload dropped text
This commit is contained in:
parent
98d7b32036
commit
deb61623b2
@ -85,9 +85,7 @@ export default () => {
|
||||
e.stopPropagation();
|
||||
|
||||
setVisible(false);
|
||||
if (e.dataTransfer === undefined || e.dataTransfer === null) {
|
||||
return;
|
||||
}
|
||||
if (!e.dataTransfer?.files.length) return;
|
||||
|
||||
onFileSubmission(e.dataTransfer.files);
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user