@escape-game-over/atlas 0.1.49 → 0.1.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escape-game-over/atlas",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
4
4
  "type": "module",
5
5
  "description": "Typed, data-driven machinery for static multi-locale, multi-deployment Astro sites.",
6
6
  "private": false,
@@ -36,6 +36,12 @@
36
36
 
37
37
  restore(history.state);
38
38
 
39
+ // A page back from the back/forward cache runs no script, and with
40
+ // `manual` Safari shows it at the top.
41
+ addEventListener("pageshow", (event) => {
42
+ if (event.persisted) restore(history.state);
43
+ });
44
+
39
45
  // Filters push entries on the same page; `manual` turned off restoring
40
46
  // those too. A frame later, so the filtered list has re-rendered first.
41
47
  addEventListener("popstate", (event) => {