luci-base: sysauth.htm: switch https detection URL
authorJo-Philipp Wich <jo@mein.io>
Mon, 11 Oct 2021 18:36:44 +0000 (20:36 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 11 Oct 2021 18:37:36 +0000 (20:37 +0200)
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>
modules/luci-base/luasrc/view/sysauth.htm

index 0bca0af5ec664bc3747b6c08153689a432a30980..acd5ff7e38f9c3c407958a3249c85ffa61115e37 100644 (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);