@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 !== "") {
|