From ea9b5e87e6ec3fbab52a02ab5f18bb51292bd249 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 11 Oct 2021 20:36:44 +0200 Subject: [PATCH] luci-base: sysauth.htm: switch https detection URL The `up.gif` icon is not present by default anymore, it has been moved to luci-compat. Probe loading.gif instead which is guaranteed to be available by default. Signed-off-by: Jo-Philipp Wich --- modules/luci-base/luasrc/view/sysauth.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/luasrc/view/sysauth.htm b/modules/luci-base/luasrc/view/sysauth.htm index 0bca0af5ec..acd5ff7e38 100644 --- a/modules/luci-base/luasrc/view/sysauth.htm +++ b/modules/luci-base/luasrc/view/sysauth.htm @@ -63,7 +63,7 @@ if https_port and fs.access(https_key) then var url = 'https://' + window.location.hostname + ':' + '<%=https_port%>' + window.location.pathname; var img=new Image; img.onload=function(){window.location = url}; - img.src='https://' + window.location.hostname + ':' + '<%=https_port%>' + '<%=resource%>/cbi/up.gif?' + Math.random();; + img.src='https://' + window.location.hostname + ':' + '<%=https_port%>' + '<%=resource%>/icons/loading.gif?' + Math.random(); setTimeout(function(){ img.src='' }, 5000); -- 2.30.2