fix: вернуть регистрацию activeXHR (onXHR) для отмены загрузки + тесты чистых функций
Deploy drhider / validate (push) Canceled after 0s

This commit is contained in:
“Naeel”
2026-08-25 19:14:30 +03:00
parent 52c3eb53f1
commit 0ad9e0047f
5 changed files with 49 additions and 0 deletions
+1
View File
@@ -363,6 +363,7 @@ async function uploadFiles() {
session: currentSid,
onStatus(k, html) { ss(sendIdx[k], html); },
onUploadStatus(text) { st.className = 'status progress'; st.textContent = text; },
onXHR(xhr) { activeXHR = xhr; },
});
if (!res.ok) {
st.className = 'status error';