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 <jo@mein.io>
(cherry picked from commit ea9b5e87e6)
This commit is contained in:
Jo-Philipp Wich 2021-10-11 20:36:44 +02:00
parent 62d45da4a5
commit 4fd8c836b3

View file

@ -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);