Typing error
This commit is contained in:
parent
7a08f7cbe2
commit
07848907f3
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user