fixed js
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user