summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/main.js2
-rw-r--r--frontend/status.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/frontend/main.js b/frontend/main.js
index 3c2c082..a90631f 100644
--- a/frontend/main.js
+++ b/frontend/main.js
@@ -75,7 +75,7 @@ async function information(urlParam = null) {
document.getElementById("logo-id").innerText = "H?";
}
- return Promise.resolve(json["block"]);
+ return Promise.resolve(json);
}
diff --git a/frontend/status.js b/frontend/status.js
index 691c13a..b822e58 100644
--- a/frontend/status.js
+++ b/frontend/status.js
@@ -2,6 +2,6 @@ startUpdateMachines();
(async () => {
const urlParams = new URLSearchParams(window.location.search);
- const blk = await information(urlParams.get("machine"));
+ const blk = await information(urlParams.get("machine"))["block"];
document.getElementById("status-title").innerHTML = `Machine Status for H${blk ? blk : '?'}`
})();