aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/index.html b/index.html
index 51b8a13..6973be9 100644
--- a/index.html
+++ b/index.html
@@ -91,8 +91,14 @@ button {
}
function finishHelp() {
- new HttpClient().get("done", () => { location.reload(); } );
+ new HttpClient().get("done", () => {});
}
+
+ const evtSource = new EventSource("events");
+ evtSource.onmessage = (event) => {
+ let doneNode = document.getElementById("done");
+ doneNode.innerHTML = event.data;
+ };
</script>
</head>
<body>