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>
This commit is contained in:
parent
4d28c390ab
commit
ea9b5e87e6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue