This commit is contained in:
matth@ultra 2024-09-01 19:53:49 +02:00
parent 271acaafe0
commit 8279ec5f88

View File

@ -33,8 +33,9 @@ function showServerError(fname, status, text) {
let stagingPath = ""; let stagingPath = "";
async function setStagingPath() { async function setStagingPath() {
const response = await fetch("imgsort.php?action=getStagingPath"); const response = await fetch("imgsort.php?action=getStagingPath");
text = await response.text();
if (response.ok) { if (response.ok) {
stagingPath = await response.text(); stagingPath = text;
} }
else { else {
showServerError("setStagingPath", response.status, text); showServerError("setStagingPath", response.status, text);