diff --git a/data/teams.db b/data/teams.db index ec8382d..3407542 100644 Binary files a/data/teams.db and b/data/teams.db differ diff --git a/require/js/answer.js b/require/js/answer.js index 7cfdbf5..94e0abf 100644 --- a/require/js/answer.js +++ b/require/js/answer.js @@ -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);