summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-05-25 08:54:05 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-05-25 08:54:05 +0900
commit661abcfcdb6475b8292f700e6a45c76adfc1243a (patch)
treeec1c361e6265a0061b95a8d4524bbc3031077345 /src/web
parentMerge branch 'master' of https://github.com/syuilo/misskey (diff)
downloadmisskey-661abcfcdb6475b8292f700e6a45c76adfc1243a.tar.gz
misskey-661abcfcdb6475b8292f700e6a45c76adfc1243a.tar.bz2
misskey-661abcfcdb6475b8292f700e6a45c76adfc1243a.zip
(Refactor) Use for...of
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/common/tags/messaging/form.tag3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/web/app/common/tags/messaging/form.tag b/src/web/app/common/tags/messaging/form.tag
index 97b1b7c446..cddf1c4061 100644
--- a/src/web/app/common/tags/messaging/form.tag
+++ b/src/web/app/common/tags/messaging/form.tag
@@ -122,8 +122,7 @@
this.onpaste = e => {
const data = e.clipboardData;
const items = data.items;
- for (let i = 0; i < items.length; i++) {
- const item = items[i];
+ for (item of items) {
if (item.kind == 'file') {
this.upload(item.getAsFile());
}