Skip to content

A live bird collage card for your Home Assistant dashboard.

fix: reload detections immediately when page becomes visible again

frederikccaa2475c900
diff --git a/scripts/overview.php b/scripts/overview.php
index 29bfee39..bd75b41d 100644
--- a/scripts/overview.php
+++ b/scripts/overview.php
@@ -459,6 +459,7 @@ document.addEventListener("visibilitychange", function() {
clearInterval(i_fn2);
if (customImage) clearInterval(i_fn3);
} else {
+ loadDetectionIfNewExists();
startAutoRefresh();
}
});