support passing in timeout & credentials via etc

This commit is contained in:
carson 2021-07-07 09:16:35 -06:00
parent a4a9d2d733
commit ba33b5b381

View File

@ -2237,8 +2237,8 @@ return (function () {
target:target, target:target,
verb:verb, verb:verb,
errors:errors, errors:errors,
withCredentials: requestAttrValues.credentials || htmx.config.withCredentials, withCredentials: etc.credentials || requestAttrValues.credentials || htmx.config.withCredentials,
timeout: requestAttrValues.timeout || htmx.config.timeout, timeout: etc.timeout || requestAttrValues.timeout || htmx.config.timeout,
path:path, path:path,
triggeringEvent:event triggeringEvent:event
}; };