@primate/core 0.2.0 → 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 !== "") {
|
|
@@ -215,6 +215,7 @@ const post = async (app) => {
|
|
|
215
215
|
await write_bootstrap(app, app.mode, app.i18n_active);
|
|
216
216
|
const manifest_data = {
|
|
217
217
|
...await (await json()).json(),
|
|
218
|
+
type: "module",
|
|
218
219
|
imports: {
|
|
219
220
|
"#config": "./config/app.js",
|
|
220
221
|
"#config/*": "./config/*.js",
|