diff --git a/src/web/html/api.js b/src/web/html/api.js index e92f326c9..6e63740db 100644 --- a/src/web/html/api.js +++ b/src/web/html/api.js @@ -103,7 +103,9 @@ function parseVersion(obj) { } function parseESP(obj) { - document.getElementById("esp_type").innerHTML="Board: " + obj["esp_type"]; + document.getElementById("esp_type").append( + document.createTextNode("Board: " + obj["esp_type"]) + ); } function parseRssi(obj) { diff --git a/src/web/html/includes/footer.html b/src/web/html/includes/footer.html index 047481f1a..5a2b705b4 100644 --- a/src/web/html/includes/footer.html +++ b/src/web/html/includes/footer.html @@ -9,7 +9,7 @@
diff --git a/src/web/html/visualization.html b/src/web/html/visualization.html index 213ded2c4..333bc718e 100644 --- a/src/web/html/visualization.html +++ b/src/web/html/visualization.html @@ -191,7 +191,7 @@ for(var i = obj.id + 1; i < ivEn.length; i++) { if((i != ivEn.length) && ivEn[i]) { last = false; - getAjax("http://10.20.3.44/api/inverter/id/" + i, parseIv); + getAjax("/api/inverter/id/" + i, parseIv); break; } }