fix kiosk mode

This commit is contained in:
ehpersonal38
2023-04-25 16:10:21 -04:00
parent 0e262ae18e
commit 5de300caa5
+3 -1
View File
@@ -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();