diff options
Diffstat (limited to 'frontend/status.js')
| -rw-r--r-- | frontend/status.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/status.js b/frontend/status.js index 3922317..5f55fe8 100644 --- a/frontend/status.js +++ b/frontend/status.js @@ -1,7 +1,7 @@ startUpdateMachines(); (async () => { - const blk = await information(); - blk = blk ? '?' : blk; - document.getElementById("status-title").innerHTML = `Machine Status for H${blk}` + const urlParams = new URLSearchParams(window.location.search); + const inf = await information(urlParams.get("machine")); + document.getElementById("status-title").innerHTML = `Machine Status for H${inf ? inf.block : '?'}` })(); |
