From ae5f261818507421693f4d744f7325686ad0f408 Mon Sep 17 00:00:00 2001 From: andersonid Date: Mon, 6 Oct 2025 15:15:08 -0300 Subject: [PATCH] fix: add null check for loading-progress element to prevent JavaScript errors --- app/static/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/static/index.html b/app/static/index.html index cb22afd..b39dd8b 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -1815,7 +1815,10 @@ const progressInterval = setInterval(() => { progress += Math.random() * 15; if (progress > 90) progress = 90; - document.getElementById('loading-progress').style.width = progress + '%'; + const progressElement = document.getElementById('loading-progress'); + if (progressElement) { + progressElement.style.width = progress + '%'; + } }, 200); return { modal: loadingModal, progressInterval };