mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-24 03:28:06 +01:00
[Glitch] Fix drag and drop link to composebox
Port 3abe003f59
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
parent
685b6e197f
commit
cd2fce0318
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ class UI extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
dataTransferIsText = (dataTransfer) => {
|
dataTransferIsText = (dataTransfer) => {
|
||||||
return (dataTransfer && Array.from(dataTransfer.types).includes('text/plain') && dataTransfer.items.length === 1);
|
return (dataTransfer && Array.from(dataTransfer.types).filter((type) => type === 'text/plain').length === 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
closeUploadModal = () => {
|
closeUploadModal = () => {
|
||||||
|
|
Loading…
Reference in a new issue