Aevann 2024-04-23 02:57:32 +02:00
parent 0a62843d89
commit c018abf9b4
1 changed files with 3 additions and 1 deletions

View File

@ -334,7 +334,9 @@ function handle_files() {
input.onchange = handle_files
document.onpaste = function(event) {
input.files = structuredClone(event.clipboardData.files);
files = structuredClone(event.clipboardData.files);
if (!files.length) return
input.files = files
handle_files()
}