release(v1.9.2): Upload modal + DnD relay from file list (with robust synthetic-drop fallback)

This commit is contained in:
Ryan
2025-11-10 02:50:19 -05:00
committed by GitHub
parent 63b24ba698
commit 062f34dd3d
5 changed files with 174 additions and 11 deletions

View File

@@ -896,7 +896,8 @@ function initUpload() {
dropArea.addEventListener("drop", function (e) {
e.preventDefault();
dropArea.style.backgroundColor = "";
const dt = e.dataTransfer;
const dt = e.dataTransfer || window.__pendingDropData || null;
window.__pendingDropData = null;
if (dt.items && dt.items.length > 0) {
getFilesFromDataTransferItems(dt.items).then(files => {
if (files.length > 0) {