Browse Source

[Glitch] Fix drag and drop link to composebox

Port 3abe003f59 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
closed-social-glitch-2
Jeong Arm 5 years ago
committed by Thibaut Girka
parent
commit
cd2fce0318
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/features/ui/index.js

+ 1
- 1
app/javascript/flavours/glitch/features/ui/index.js View File

@ -320,7 +320,7 @@ class UI extends React.Component {
}
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 = () => {

Loading…
Cancel
Save