summaryrefslogtreecommitdiff
path: root/graph/web
diff options
context:
space:
mode:
Diffstat (limited to 'graph/web')
-rw-r--r--graph/web/viewer.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/graph/web/viewer.js b/graph/web/viewer.js
index 6309deae..4412817e 100644
--- a/graph/web/viewer.js
+++ b/graph/web/viewer.js
@@ -71,7 +71,7 @@ function updateUI() {
status.textContent = failure || (connection !== "Connected" ? connection :
!rendererReady ? "Connected; initializing graph renderer..." :
busy ? busy : compiling ? "Compiling... " + frames.length + " frames received" :
- done ? frames.length + " frames ready" : "Connected");
+ done ? frames.length + " frames ready" : "Ready. Enter a program and click Compile.");
const at = wanted >= 0 ? wanted : current;
if (document.activeElement !== frameNo) frameNo.value = String(at + 1);
frameNo.max = scrub.max = String(Math.max(1, frames.length));
@@ -365,7 +365,7 @@ try {
socket.onmessage = event => {
const message = event.data;
if (message === "!") {
- get_program();
+ updateUI();
} else if (message === "#") {
done = true;
compiling = false;