diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-02 16:58:11 +0700 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-02 16:58:11 +0700 |
| commit | 317a9b6fe6dc37a9cbc7aade8e945db497f0257c (patch) | |
| tree | 81e628fc14435bf8596818acf0627bbafee5d08a /frontend | |
| parent | 6e483de51f9169e9a6c42b0ed68cab6796ec57ac (diff) | |
WAIT
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |
