changed the fetch in js to be relative (no explicite url; just a path); removed version from docker compose
This commit is contained in:
@@ -295,7 +295,7 @@ async function submitForm(formData) {
|
||||
upload_status.innerText =
|
||||
"Censoring Page " + data.page + "/" + data.pages;
|
||||
});
|
||||
const response = await fetch(window.location + "submit", {
|
||||
const response = await fetch("/submit/", {
|
||||
method: "POST",
|
||||
body: formData,
|
||||
});
|
||||
@@ -338,7 +338,7 @@ function uploadPdf(eve) {
|
||||
}
|
||||
async function uploadFile(formData) {
|
||||
try {
|
||||
const response = await fetch(window.location + "uploadfile", {
|
||||
const response = await fetch("/uploadfile/", {
|
||||
method: "POST",
|
||||
body: formData,
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var url = window.location + "search/";
|
||||
var url = "/search/";
|
||||
var lid = null;
|
||||
var pid = null;
|
||||
var activeAutocompletion = null;
|
||||
|
||||
Reference in New Issue
Block a user