mirror of
https://github.com/bigskysoftware/htmx.git
synced 2026-01-25 05:06:13 +00:00
remove historyReload in favor of "reload" value for htmx.config.history
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user