maybe ios history bug

This commit is contained in:
Carson Gross 2022-10-27 08:50:50 -06:00
parent 9e21cfd635
commit 5652c01635

View File

@ -0,0 +1,24 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<script type="application/javascript" src="../../../src/htmx.js"></script>
<title>History - Regression 2 Page 1</title>
<script>
htmx.on("htmx:beforeHistorySave", function(evt){
console.log("Saving history : ", evt.detail);
console.log("History Cache Before:", JSON.parse(localStorage.getItem("htmx-history-cache")))
setTimeout(function () {
console.log("History Cache After:", JSON.parse(localStorage.getItem("htmx-history-cache")))
}, 10);
})
</script>
</head>
<body style="padding:20px;font-family: sans-serif">
<h1>Page 1, Issues A Full Request For Page 2</h1>
<a href="page2.html">Go To Page 2</a>
</body>
</html>