Typing error

This commit is contained in:
Leo Vasanko 2023-11-13 12:11:02 +00:00
parent 7a08f7cbe2
commit 07848907f3

View File

@ -25,7 +25,7 @@ function pasteHandler(event: ClipboardEvent) {
const entry = item.webkitGetAsEntry() const entry = item.webkitGetAsEntry()
if (entry?.isFile) { if (entry?.isFile) {
const file = item.getAsFile() const file = item.getAsFile()
infiles.push(file) if (file) infiles.push(file)
} else if (entry?.isDirectory) { } else if (entry?.isDirectory) {
dirs.push(entry as FileSystemDirectoryEntry) dirs.push(entry as FileSystemDirectoryEntry)
} }