remove historyReload in favor of "reload" value for htmx.config.history

This commit is contained in:
Carson Gross
2025-12-06 16:43:11 -07:00
parent 1d42990568
commit c878a939d6

View File

@@ -96,7 +96,6 @@ var htmx = (() => {
prefix: "",
transitions: false,
history: true,
historyReload: false,
mode: 'same-origin',
defaultSwap: "innerHTML",
indicatorClass: "htmx-indicator",
@@ -1588,7 +1587,7 @@ var htmx = (() => {
__restoreHistory(path) {
path = path || location.pathname + location.search;
if (this.__trigger(document, "htmx:before:restore:history", {path, cacheMiss: true})) {
if (this.config.historyReload) {
if (this.config.history === "reload") {
location.reload();
} else {
this.ajax('GET', path, {