Compare commits

..

No commits in common. "898b3693dd84c067f359397cbaa6452ac7f12f6c" and "e069fb71b9384d1546ee46fca2c1f0c98228be7f" have entirely different histories.

4 changed files with 3 additions and 14 deletions

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{
"name": "traxxx-web",
"version": "0.10.6",
"version": "0.10.5",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "0.10.6",
"version": "0.10.5",
"dependencies": {
"@brillout/json-serializer": "^0.5.8",
"@dicebear/collection": "^7.0.5",

View File

@ -70,5 +70,5 @@
"postcss-custom-media": "^10.0.2",
"postcss-nesting": "^12.0.2"
},
"version": "0.10.6"
"version": "0.10.5"
}

View File

@ -13,13 +13,6 @@ async function onRenderClient(pageContext) {
const app = createApp(Page, pageProps, pageContext);
app.mount('#app');
if (typeof window !== 'undefined') {
window.addEventListener('popstate', () => {
// force reload when back button is used
window.location.reload();
});
}
}
export { onRenderClient };

View File

@ -1,5 +1,3 @@
import events from './events.js';
export default function navigate(path, query, options = {}) {
const curatedQuery = Object.fromEntries(Object.entries(query || {}).map(([key, value]) => (value === undefined ? null : [key, value])).filter(Boolean));
@ -19,6 +17,4 @@ export default function navigate(path, query, options = {}) {
} else {
history.pushState({}, '', url); // eslint-disable-line no-restricted-globals
}
events.emit('route', url);
}