From 08d132d660dd3fba8cf501282134d4e657d924ec Mon Sep 17 00:00:00 2001 From: antux18 Date: Sat, 2 Sep 2023 01:10:07 -0400 Subject: [PATCH] Correction variable JS. --- require/js/answer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();