diff --git a/lib/view.js b/lib/view.js index e5b7d69f..fd48363c 100644 --- a/lib/view.js +++ b/lib/view.js @@ -147,7 +147,9 @@ class TerminusView extends View { if (filePath) { this.input(`${filePath} `) } else if (dataTransfer.files.length > 0) { - dataTransfer.files.forEach(file => this.input(`${file.path} `)) + for (const file of dataTransfer.files) { + this.input(`${file.path} `) + } } } }