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,
verb:verb,
errors:errors,
withCredentials: requestAttrValues.credentials || htmx.config.withCredentials,
timeout: requestAttrValues.timeout || htmx.config.timeout,
withCredentials: etc.credentials || requestAttrValues.credentials || htmx.config.withCredentials,
timeout: etc.timeout || requestAttrValues.timeout || htmx.config.timeout,
path:path,
triggeringEvent:event
};