Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
carson 2021-02-26 14:12:18 -07:00
commit a5241cc2df

View File

@ -1174,6 +1174,7 @@ return (function () {
var settleInfo = makeSettleInfo(elt);
selectAndSwap(swapSpec.swapStyle, elt, target, response, settleInfo)
settleImmediately(settleInfo.tasks)
triggerEvent(elt, "htmx:sseMessage", event)
};
@ -1427,7 +1428,7 @@ return (function () {
while(historyCache.length > 0){
try {
localStorage.setItem("htmx-history-cache", JSON.stringify(historyCache));
return;
break;
} catch (e) {
triggerErrorEvent(getDocument().body, "htmx:historyCacheError", {cause:e, cache: historyCache})
historyCache.shift(); // shrink the cache and retry