From 5de300caa524abcd580af965a2c8d91ee7233bf4 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Tue, 25 Apr 2023 16:10:21 -0400 Subject: [PATCH] fix kiosk mode --- scripts/todays_detections.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php index 69f1e29..15cde37 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"; + + document.getElementsByClassName("legacyview")[0].style.display="unset"; + if(typeof element !== "undefined") { element.remove();