Fix custom image displaying when its not set

Co-Authored-By: lloydbayley <21309308+lloydbayley@users.noreply.github.com>
This commit is contained in:
ehpersonal38
2023-03-23 11:51:10 -04:00
parent 44edeab688
commit cff6e9ae17
+1 -1
View File
@@ -461,7 +461,7 @@ window.setInterval(function(){
document.getElementById("spectrogramimage").src = "/spectrogram.png?nocache="+Date.now();
}, <?php echo $refresh; ?>*1000);
<?php if(isset($config["CUSTOM_IMAGE"])){?>
<?php if(isset($config["CUSTOM_IMAGE"]) && strlen($config["CUSTOM_IMAGE"]) > 2){?>
// every 1 second, this loop will run and refresh the custom image
window.setInterval(function(){
// Find the customimage element