diff options
author | Hinaloe <hina@hinaloe.net> | 2018-06-18 01:10:58 +0900 |
---|---|---|
committer | Yamagishi Kazutoshi <ykzts@desire.sh> | 2018-06-18 01:10:58 +0900 |
commit | b347d554326c810b82f4a9d9a7042e41b771967f (patch) | |
tree | dba1e258bf4e9344f24e008451a8509f058eb6e2 | |
parent | 7eec279c7fb0350974fea4456c5c3bab7b457376 (diff) |
DataTransfer.types may Array-like object (#7827)
-rw-r--r-- | app/javascript/mastodon/features/ui/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/ui/index.js b/app/javascript/mastodon/features/ui/index.js index f1409b946..3c1a266e3 100644 --- a/app/javascript/mastodon/features/ui/index.js +++ b/app/javascript/mastodon/features/ui/index.js @@ -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 }); } } |