Skip to content

Commit

Permalink
fix /live
Browse files Browse the repository at this point in the history
  • Loading branch information
lumapu committed Mar 3, 2023
1 parent 491155f commit 90955b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/web/html/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/web/html/includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="right">
<ul>
<li>{#VERSION_GIT}</li>
<li><span id="esp_type"></span></li>
<li id="esp_type"></li>
<li><a href="https://creativecommons.org/licenses/by-nc-sa/3.0/de" target="_blank" >CC BY-NC-SA 3.0</a></li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/web/html/visualization.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 90955b9

Please sign in to comment.