From 519473e8f6034ee8868b4cc93e0ec1efca15cbab Mon Sep 17 00:00:00 2001 From: Hinaloe Date: Mon, 18 Jun 2018 01:10:58 +0900 Subject: [PATCH] DataTransfer.types may Array-like object (#7827) --- app/javascript/mastodon/features/ui/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/ui/index.js b/app/javascript/mastodon/features/ui/index.js index f1409b9467..3c1a266e30 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 }); } }