system/applyreboot: Use the correct protocol, #603
This commit is contained in:
parent
c4be2b93c0
commit
c16cbd527c
1 changed files with 2 additions and 2 deletions
|
@ -24,10 +24,10 @@ $Id$
|
||||||
|
|
||||||
img.onload = function() {
|
img.onload = function() {
|
||||||
window.clearInterval(interval);
|
window.clearInterval(interval);
|
||||||
location.href = 'http://<%=addr or luci.http.getenv("SERVER_NAME")%>/';
|
location.href = ('https:' == document.location.protocol ? 'https://' : 'http://') + '<%=addr or luci.http.getenv("SERVER_NAME")%>/';
|
||||||
};
|
};
|
||||||
|
|
||||||
img.src = 'http://<%=addr or luci.http.getenv("SERVER_NAME")%><%=resource%>/icons/loading.gif?' + Math.random();
|
img.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + '<%=addr or luci.http.getenv("SERVER_NAME")%><%=resource%>/icons/loading.gif?' + Math.random();
|
||||||
}, 5000);
|
}, 5000);
|
||||||
//]]></script>
|
//]]></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue