fix: dont prevent paste

This commit is contained in:
ThaUnknown 2025-06-29 10:45:25 +02:00
parent 45018f9747
commit 73608972c6
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ui",
"version": "6.4.11",
"version": "6.4.12",
"license": "BUSL-1.1",
"private": true,
"packageManager": "pnpm@9.14.4",

View file

@ -25,7 +25,6 @@
const w2gRx = /hayase(?:(?:\.watch)|(?::\/))\/w2g\/(.+)/
async function handleTransfer (e: { dataTransfer?: DataTransfer | null, clipboardData?: DataTransfer | null } & Event) {
e.preventDefault()
const promises = [...(e.dataTransfer ?? e.clipboardData)!.items].map(item => {
const type = item.type
return new Promise<File | { text: string, type: string }>(resolve => item.kind === 'string' ? item.getAsString(text => resolve({ text, type })) : resolve(item.getAsFile()!))