summaryrefslogtreecommitdiff
path: root/frontend/start.js
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-12-03 17:53:33 +0700
committeraltaf-creator <dev@altafcreator.com>2025-12-03 17:53:33 +0700
commitb11c1ae20dc4978d9a0d65126aea29a8268af9b7 (patch)
tree5e091430bf7157becf25cd49f34599ed6c495c3c /frontend/start.js
parent61c89b7db984cb16f2d88a5b3326bdb1dfdc4069 (diff)
fixes (i hope) frontend
Diffstat (limited to 'frontend/start.js')
-rw-r--r--frontend/start.js2
1 files changed, 1 insertions, 1 deletions
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.";