fix: вернуть регистрацию activeXHR (onXHR) для отмены загрузки + тесты чистых функций
Deploy drhider / validate (push) Canceled after 0s
Deploy drhider / validate (push) Canceled after 0s
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user