From 317a9b6fe6dc37a9cbc7aade8e945db497f0257c Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Tue, 2 Dec 2025 16:58:11 +0700 Subject: WAIT --- frontend/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'frontend/main.js') diff --git a/frontend/main.js b/frontend/main.js index b7ba1b7..a3b6c68 100644 --- a/frontend/main.js +++ b/frontend/main.js @@ -68,7 +68,7 @@ function start() { // --- information loading + cookie setting (from server) async function information(urlParam = null) { - const response = fetch(`${API_URL}/info`, { + const response = await fetch(`${API_URL}/info`, { credentials: "include", method: "POST", headers: { @@ -96,6 +96,7 @@ async function startUpdateMachines() { const urlParams = new URLSearchParams(window.location.search); await information(urlParams.get("block")); + console.log("info done") updateMachines(); -- cgit v1.2.3