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