mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-21 01:21:41 +01:00
[Glitch] Fix drag and drop link to composebox
Port 3abe003f5938fe4194bffa1127d3451eca00e321 to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
parent
685b6e197f
commit
cd2fce0318
@ -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…
x
Reference in New Issue
Block a user