Don't try to upload dropped text

This commit is contained in:
Dane Everitt 2020-09-09 21:22:13 -07:00
parent 98d7b32036
commit deb61623b2
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -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);
}}