From 90955b91f625162e70ade5d7858e5f13f6848700 Mon Sep 17 00:00:00 2001 From: lumapu Date: Fri, 3 Mar 2023 09:49:41 +0100 Subject: [PATCH] fix /live --- src/web/html/api.js | 4 +++- src/web/html/includes/footer.html | 2 +- src/web/html/visualization.html | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/web/html/api.js b/src/web/html/api.js index e92f326c..6e63740d 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 047481f1..5a2b705b 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 213ded2c..333bc718 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; } }