From 104b0bf4980cd27a53967765717864a41837b894 Mon Sep 17 00:00:00 2001 From: Ricardo Olsen Date: Sun, 8 Sep 2024 19:55:47 -0300 Subject: [PATCH] Display viewer do not show loader when no display is loaded. --- src/htdocs/display.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/htdocs/display.html b/src/htdocs/display.html index ded15ae8..77bd5dc3 100644 --- a/src/htdocs/display.html +++ b/src/htdocs/display.html @@ -218,6 +218,9 @@ // Load screen file if (tela == "") { + if (indtela == "") + document.getElementById("loader").style.display = "none"; + // if svg file name is not passed as a parameter, wait for screen_list.js to load and find the name in the list, then init the svg processing $(function(){ WebSAGE.init_svg(WebSAGE.lista_telas("", indtela));