Skip to content

A live bird collage card for your Home Assistant dashboard.

fix kiosk mode

ehpersonal385de300caa524
diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php
index 69f1e293..15cde377 100644
--- a/scripts/todays_detections.php
+++ b/scripts/todays_detections.php
@@ -570,7 +570,9 @@ function searchDetections(searchvalue) {
function loadDetections(detections_limit, element=undefined) {
const xhttp = new XMLHttpRequest();
xhttp.onload = function() {
- document.getElementsByClassName("legacyview")[0].style.display="unset";
+ <?php if($kiosk == false) { ?>
+ document.getElementsByClassName("legacyview")[0].style.display="unset";
+ <?php } ?>
if(typeof element !== "undefined")
{
element.remove();