diff --git a/config.env.example b/config.env.example index 26ed3d1..74bf1a3 100644 --- a/config.env.example +++ b/config.env.example @@ -151,7 +151,7 @@ LIVE_STREAM_QUALITY=75 LIVE_STREAM_EVERY_N=2 # --- Dashboard (counter_dashboard.py) --- -# Template file: "dashboard.html" (default) or "dashboard_new.html" (Lamborghini theme) +# Template file: "dashboard.html" (default) or "dashboard_lamborghini.html" (Lamborghini theme) DASHBOARD_TEMPLATE=dashboard.html # Flask secret key for session/cookie signing — change in production! SECRET_KEY=change-me-in-production diff --git a/templates/dashboard.html b/templates/dashboard.html index 58d08a9..7416951 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -1177,6 +1177,7 @@ function onVideoLoad() { } function onVideoError() { + if (!videoActive) { hideVideoError(); return; } const overlay = document.getElementById('video-error-overlay'); if (overlay) overlay.classList.add('visible'); if (videoErrorTimer) clearTimeout(videoErrorTimer); diff --git a/templates/dashboard_new.html b/templates/dashboard_lamborghini.html similarity index 99% rename from templates/dashboard_new.html rename to templates/dashboard_lamborghini.html index f0c9c81..07e21e2 100644 --- a/templates/dashboard_new.html +++ b/templates/dashboard_lamborghini.html @@ -982,6 +982,7 @@ function onVideoLoad() { } function onVideoError() { + if (!videoActive) { hideVideoError(); return; } const overlay = document.getElementById('video-error-overlay'); if (overlay) overlay.classList.add('visible'); if (videoErrorTimer) clearTimeout(videoErrorTimer);