This commit is contained in:
michael
2026-01-17 02:49:32 +01:00
parent a1ccda2e88
commit 4905663933
283 changed files with 32074 additions and 15759 deletions

View File

@@ -7,7 +7,6 @@
var domainname_for_testing = "";
//var domainname_for_testing = "192.168.1.151";
/* Returns the domainname with prepended protocol.
Eg. http://watermeter.fritz.box or http://192.168.1.5 */
function getDomainname(){
@@ -37,12 +36,10 @@ function UpdatePage(_dosession = true){
window.location = zw;
}
}
function LoadHostname() {
_domainname = getDomainname();
var xhttp = new XMLHttpRequest();
xhttp.addEventListener('load', function(event) {
if (xhttp.status >= 200 && xhttp.status < 300) {
@@ -54,21 +51,16 @@ function LoadHostname() {
console.warn(request.statusText, request.responseText);
}
});
// var xhttp = new XMLHttpRequest();
try {
url = _domainname + '/info?type=Hostname';
xhttp.open("GET", url, true);
xhttp.send();
}
catch (error)
{
// alert("Loading Hostname failed");
}
}
var fwVersion = "";
var webUiVersion = "";
@@ -126,7 +118,6 @@ function LoadWebUiVersion() {
}
}
function compareVersions() {
if (fwVersion == "" || webUiVersion == "") {
return;