From adcd541256ed767069c8cfdc9fc73afc50093780 Mon Sep 17 00:00:00 2001 From: antux18 Date: Thu, 29 Jun 2023 18:24:03 +0200 Subject: [PATCH] Correction AJAX. --- data/teams.db | Bin 24576 -> 24576 bytes require/js/answer.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/data/teams.db b/data/teams.db index ec8382d008f3c224cc86638f0f5da9cde0aacb73..3407542a2f31136557f4876f751c1f57f9d83397 100644 GIT binary patch delta 43 xcmZoTz}Rqrae_3X^h6nFM(K?SEBV=f^S=PW&4LQI`6s`Y7iMJL{9m5Y0RUD;51ar1 delta 44 xcmZoTz}Rqrae_3X=tLQ3M$wH4EBV=9@PpxIL517=lV8gVPYmGQ%&qX%9sp%`5M=-W 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);