mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
(Refactor) Use for...of
This commit is contained in:
parent
fffbef8e45
commit
661abcfcdb
@ -122,8 +122,7 @@
|
|||||||
this.onpaste = e => {
|
this.onpaste = e => {
|
||||||
const data = e.clipboardData;
|
const data = e.clipboardData;
|
||||||
const items = data.items;
|
const items = data.items;
|
||||||
for (let i = 0; i < items.length; i++) {
|
for (item of items) {
|
||||||
const item = items[i];
|
|
||||||
if (item.kind == 'file') {
|
if (item.kind == 'file') {
|
||||||
this.upload(item.getAsFile());
|
this.upload(item.getAsFile());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user