This commit is contained in:
mark committed 2026-09-04 09:43:19 -04:00
1 parent 2fea308b38
commit f5fd8e632d
4 files changed
+91 -18

No files matched your search

+5
View File
@@ -32,6 +32,11 @@
// htmx stamps every request it makes; a navigation never carries it.
this.htmx = this.request.headers.get('HX-Request') === 'true';
this.navigate = this.request.mode === 'navigate';
// Going back or forward. htmx asks for the page again and expects a whole
// document back, the same as a navigation -- it takes the history element
// out of the response itself.
this.restore =
this.request.headers.get('HX-History-Restore-Request') === 'true';
}
Call.prototype.form = function () {