in between state before converting to pathlib
This commit is contained in:
@@ -285,7 +285,7 @@ function submitPdf(eve) {
|
||||
async function submitForm(formData) {
|
||||
try {
|
||||
const updateEventSource = new EventSource(
|
||||
"http://127.0.0.1:8000/get_censor_status/" + doc.fID,
|
||||
window.location + "get_censor_status/" + doc.fID,
|
||||
);
|
||||
modal.style.display = "flex";
|
||||
// console.log("http://127.0.0.1:8000/get_censor_status/" + doc.fID);
|
||||
@@ -295,7 +295,7 @@ async function submitForm(formData) {
|
||||
upload_status.innerText =
|
||||
"Censoring Page " + data.page + "/" + data.pages;
|
||||
});
|
||||
const response = await fetch("http://127.0.0.1:8000/submit", {
|
||||
const response = await fetch(window.location + "submit", {
|
||||
method: "POST",
|
||||
body: formData,
|
||||
});
|
||||
@@ -338,7 +338,7 @@ function uploadPdf(eve) {
|
||||
}
|
||||
async function uploadFile(formData) {
|
||||
try {
|
||||
const response = await fetch("http://127.0.0.1:8000/uploadfile", {
|
||||
const response = await fetch(window.location + "uploadfile", {
|
||||
method: "POST",
|
||||
body: formData,
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var url = "http://127.0.0.1:8000/search/";
|
||||
var url = window.location + "search/";
|
||||
var lid = null;
|
||||
var pid = null;
|
||||
var activeAutocompletion = null;
|
||||
|
||||
Reference in New Issue
Block a user