1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-05 10:18:38 +09:00

(Refactor) Use for...of

This commit is contained in:
syuilo 2017-05-25 08:54:05 +09:00
parent fffbef8e45
commit 661abcfcdb

View File

@ -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());
}