Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'public/index.html')
-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>