From: Jo-Philipp Wich Date: Mon, 11 Oct 2021 18:36:44 +0000 (+0200) Subject: luci-base: sysauth.htm: switch https detection URL X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ea9b5e87e6ec3fbab52a02ab5f18bb51292bd249;p=project%2Fluci.git 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 --- 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);