mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2026-01-31 06:40:49 +03:00
test1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user