Enha: simplify sse (worsened event recieving)

This commit is contained in:
Grail Finder
2025-07-12 20:33:41 +03:00
parent a934d07be3
commit 8f9865db3f
6 changed files with 37 additions and 46 deletions

View File

@ -13,6 +13,12 @@
</head>
<body>
<div id="ancestor" hx-ext="sse" sse-connect="/sub/sse">
<script type="text/javascript">
document.body.addEventListener('htmx:sseError', function (e) {
// do something before the event data is swapped in
console.log(e)
})
</script>
<div id="main-content">
{{template "main" .}}
</div>