Correction AJAX.
This commit is contained in:
parent
149763753e
commit
adcd541256
BIN
data/teams.db
BIN
data/teams.db
Binary file not shown.
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user