Enha: simplify sse (worsened event recieving)
This commit is contained in:
		| @@ -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> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder