Browse Source

DataTransfer.types may Array-like object (#7827)

master
Hinaloe 6 years ago
committed by Yamagishi Kazutoshi
parent
commit
b347d55432
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

@ -230,7 +230,7 @@ export default class UI extends React.PureComponent {
this.dragTargets.push(e.target);
}
if (e.dataTransfer && e.dataTransfer.types.includes('Files')) {
if (e.dataTransfer && Array.from(e.dataTransfer.types).includes('Files')) {
this.setState({ draggingOver: true });
}
}

Loading…
Cancel
Save