Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-05-31 13:41:06 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-05-31 13:41:06 -0700
commit10b27a788d66d226b334c13e5892ce1c9b7b8ffa (patch)
tree179cdf9671324ead4e39a59973a60fe416b463c9 /public
parent52377f49699ad996bb11c1447206cc6b8b241ebd (diff)
WIP: implement build status plugin
Diffstat (limited to 'public')
-rw-r--r--public/index.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/index.html b/public/index.html
index 5badb7c..0307115 100644
--- a/public/index.html
+++ b/public/index.html
@@ -244,7 +244,9 @@
<input type="file" accept="image/svg+xml"/>
<script>
- new EventSource('/esbuild').addEventListener('change', () => location.reload());
+ const source = new EventSource('/esbuild');
+ source.addEventListener('change', () => location.reload());
+ source.addEventListener('message', (e) => console.log(e));
</script>
<script src="index.js"></script>
<script src="soldier_record_block.js"></script>