fix kiosk mode

This commit is contained in:
ehpersonal38
2023-04-25 16:10:21 -04:00
parent 0e262ae18e
commit 5de300caa5
+2
View File
@@ -570,7 +570,9 @@ function searchDetections(searchvalue) {
function loadDetections(detections_limit, element=undefined) { function loadDetections(detections_limit, element=undefined) {
const xhttp = new XMLHttpRequest(); const xhttp = new XMLHttpRequest();
xhttp.onload = function() { xhttp.onload = function() {
<?php if($kiosk == false) { ?>
document.getElementsByClassName("legacyview")[0].style.display="unset"; document.getElementsByClassName("legacyview")[0].style.display="unset";
<?php } ?>
if(typeof element !== "undefined") if(typeof element !== "undefined")
{ {
element.remove(); element.remove();