diff options
Diffstat (limited to 'src/ext/ajax-header.js')
-rw-r--r-- | src/ext/ajax-header.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ext/ajax-header.js b/src/ext/ajax-header.js index 1891699d..5c6221bf 100644 --- a/src/ext/ajax-header.js +++ b/src/ext/ajax-header.js @@ -1,6 +1,6 @@ htmx.defineExtension('ajax-header', { onEvent: function (name, evt) { - if (name === "configRequest.htmx") { + if (name === "htmx:configRequest") { evt.detail.headers['X-Requested-With'] = 'XMLHttpRequest'; } } |