Browse Source

Fix drag and drop link to composebox (#12055)

pull/4/head
Jeong Arm 5 years ago
committed by Eugen Rochko
parent
commit
3abe003f59
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/features/ui/index.js

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

@ -327,7 +327,7 @@ class UI extends React.PureComponent {
} }
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…
Cancel
Save