summaryrefslogtreecommitdiffstatshomepage
path: root/src/ext/json-enc.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext/json-enc.js')
-rw-r--r--src/ext/json-enc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ext/json-enc.js b/src/ext/json-enc.js
index eb76bdc0..db0aa36f 100644
--- a/src/ext/json-enc.js
+++ b/src/ext/json-enc.js
@@ -1,6 +1,6 @@
htmx.defineExtension('json-enc', {
onEvent: function (name, evt) {
- if (name === "configRequest.htmx") {
+ if (name === "htmx:configRequest") {
evt.detail.headers['Content-Type'] = "application/json";
}
},