diff --git a/require/js/answer.js b/require/js/answer.js index 40bcd9e..498fdb4 100644 --- a/require/js/answer.js +++ b/require/js/answer.js @@ -1,4 +1,4 @@ -var subdomain = ""; // À modifier sur le serveur +var root = ""; // À modifier sur le serveur // Gestion de la langue : var url_string = window.location.href; @@ -26,7 +26,7 @@ if (lg == "fr") { export async function puzzleSolve(code, team_id, art_id) { try { - const response = await fetch(url.origin + "/" + subdomain + "answer.php?lg=" + lg + "&team=" + team_id + "&code=" + code + "&id=" + art_id); + const response = await fetch(url.origin + "/" + root + "answer.php?lg=" + lg + "&team=" + team_id + "&code=" + code + "&id=" + art_id); const data = await response.json(); if (data["valid_qr"]) { location.reload();