about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorHinaloe <hina@hinaloe.net>2018-06-18 01:10:58 +0900
committerYamagishi Kazutoshi <ykzts@desire.sh>2018-06-18 01:10:58 +0900
commitb347d554326c810b82f4a9d9a7042e41b771967f (patch)
treedba1e258bf4e9344f24e008451a8509f058eb6e2 /app/javascript
parent7eec279c7fb0350974fea4456c5c3bab7b457376 (diff)
DataTransfer.types may Array-like object (#7827)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/features/ui/index.js2
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 });
     }
   }