mirror of
https://github.com/openwrt/luci.git
synced 2025-12-27 01:09:37 +04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user