From b11c1ae20dc4978d9a0d65126aea29a8268af9b7 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Wed, 3 Dec 2025 17:53:33 +0700 Subject: fixes (i hope) frontend --- frontend/start.js | 2 +- frontend/status/index.html | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'frontend') diff --git a/frontend/start.js b/frontend/start.js index b290bc0..c36dc40 100644 --- a/frontend/start.js +++ b/frontend/start.js @@ -38,7 +38,7 @@ async function requestPermission() { const existingPanel = document.getElementById("existing-laundry-panel"); const existingText = document.getElementById("existing-laundry-text"); - if (timers.length > 0) { + if (timers[1].length > 0) { existingPanel.style.display = 'inherit'; if (timers.length == 1) { existingText.innerText = "You currently have another ongoing laundry. You are creating a new timer."; diff --git a/frontend/status/index.html b/frontend/status/index.html index d0d3185..b016a4f 100644 --- a/frontend/status/index.html +++ b/frontend/status/index.html @@ -69,11 +69,11 @@

Washer 1

- +
- Idle - + Idle +
@@ -81,11 +81,11 @@

Dryer 2

- +
- Idle - + Idle +
@@ -93,11 +93,11 @@

Washer 2

- +
- Idle - + Idle +
-- cgit v1.2.3