@primate/core 0.2.1 → 0.2.2

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.
@@ -138,6 +138,11 @@ const go = async (href, updater, event) => {
138
138
  // external redirect
139
139
  };
140
140
  export default (updater) => {
141
+ globalThis.addEventListener("pageshow", event => {
142
+ if (event.persisted) {
143
+ globalThis.location.reload();
144
+ }
145
+ });
141
146
  globalThis.addEventListener("load", _ => {
142
147
  history.scrollRestoration = "manual";
143
148
  if (globalThis.location.hash !== "") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primate/core",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "The universal web framework",
5
5
  "homepage": "https://primate.run",
6
6
  "bugs": "https://github.com/primate-run/primate/issues",