fix type in sse event (#1463)

This commit is contained in:
Tadej Stanic 2023-06-07 23:01:47 +02:00 committed by GitHub
parent ec90998e77
commit 19f8ee9b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
_site
test/scratch/scratch.html
.DS_Store
.vscode

View File

@ -157,7 +157,7 @@ This extension adds support for Server Sent Events to htmx. See /www/extensions
};
source.onopen = function (evt) {
api.triggerEvent(elt, "htmx::sseOpen", {source: source});
api.triggerEvent(elt, "htmx:sseOpen", {source: source});
}
// Add message handlers for every `sse-swap` attribute