diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-11-30 19:12:43 +0700 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-11-30 19:12:43 +0700 |
| commit | 2da7a25fcd199cbc972a49374dee5e519fda9f9d (patch) | |
| tree | 29449ecb3962439a4070c626596c3afc9cb9b22d /frontend | |
| parent | ea6d47b1a1fc89687d4317cc565440c5bda844f9 (diff) | |
quick fix
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/main.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/main.js b/frontend/main.js index 1e1c8f9..e27977d 100644 --- a/frontend/main.js +++ b/frontend/main.js @@ -207,7 +207,6 @@ async function startLoadTimers() { prog.style.width = ((timeRemaining / (timers[i]["duration"] * 60)) * 100).toString() + "%"; if (timeRemaining <= 0) { - alert(`timer ${i} finished`); document.getElementById(`timer-btn-${i}`).disabled = false; } } @@ -228,6 +227,9 @@ async function finishLaundryTimer(timerId) { const response = await fetch(`${API_URL}/finish`, { method: "POST", credentials: "include", + headers: { + "Content-Type": "application/json" + }, body: JSON.stringify({id: timerId}), }); if (await response.text() == "laundry finished") { |
