Correction AJAX.

This commit is contained in:
antux18 2023-06-29 18:24:03 +02:00
parent 149763753e
commit adcd541256
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -24,7 +24,7 @@ if (lg == "fr") {
export async function puzzleSolve(code, team_id, art_id) {
try {
const response = await fetch("/answer.php?lg=" + lg + "&team=" + team_id + "&code=" + code + "&id=" + art_id);
const response = await fetch(url.origin + "/answer.php?lg=" + lg + "&team=" + team_id + "&code=" + code + "&id=" + art_id);
const data = await response.text();
if (data == 0) {
alert(qr_error);