1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-05 00:19:59 +00:00

fix: paste on publish widget

This commit is contained in:
三咲智子 2022-11-24 16:20:21 +08:00
parent 9485830da2
commit 2422c809e0
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E

View file

@ -39,7 +39,7 @@ let isUploading = $ref<boolean>(false)
async function handlePaste(evt: ClipboardEvent) {
const files = evt.clipboardData?.files
if (!files)
if (!files || files.length === 0)
return
evt.preventDefault()