Correction variable JS.
This commit is contained in:
parent
60def31d70
commit
08d132d660
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user