diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-05-25 08:54:05 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-05-25 08:54:05 +0900 |
| commit | 661abcfcdb6475b8292f700e6a45c76adfc1243a (patch) | |
| tree | ec1c361e6265a0061b95a8d4524bbc3031077345 /src/web | |
| parent | Merge branch 'master' of https://github.com/syuilo/misskey (diff) | |
| download | misskey-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.tag | 3 |
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()); } |