Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

Commit

Permalink
fix: fix dropping files onto terminal
Browse files Browse the repository at this point in the history
fixes #230
  • Loading branch information
UziTech authored May 12, 2021
1 parent dc9b355 commit bb242c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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} `)
}
}
}
}
Expand Down

0 comments on commit bb242c4

Please sign in to comment.