This commit is contained in:
Marcel Gansfusz
2025-11-04 17:17:13 +01:00
parent 8e74848397
commit f7c73a0c5a

View File

@@ -283,7 +283,7 @@ function submitPdf(eve) {
submitForm(formdata); submitForm(formdata);
} }
async function submitForm(formData) { async function submitForm(formData) {
var updateEventSource = None; var updateEventSource = null;
try { try {
updateEventSource = new EventSource("/get_censor_status/" + doc.fID); updateEventSource = new EventSource("/get_censor_status/" + doc.fID);
@@ -305,7 +305,7 @@ async function submitForm(formData) {
method: "POST", method: "POST",
body: formData, body: formData,
}); });
if (updateEventSource !== None) { if (updateEventSource !== null) {
updateEventSource.close(); updateEventSource.close();
} }
modal.style.display = "none"; modal.style.display = "none";