mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-28 13:31:06 +00:00
maybe ios history bug
This commit is contained in:
parent
9e21cfd635
commit
5652c01635
24
test/manual/history_safari_ios_bug/index.html
Normal file
24
test/manual/history_safari_ios_bug/index.html
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user