mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 14:23:44 +02:00
Don't try to upload dropped text
This commit is contained in:
@@ -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);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user