Files
flotilla/src/app/util/history.ts
T
2025-10-21 08:27:30 -07:00

11 lines
267 B
TypeScript

import {page} from "$app/stores"
export const lastPageBySpaceUrl = new Map<string, string>()
export const setupHistory = () =>
page.subscribe($page => {
if ($page.params.relay) {
lastPageBySpaceUrl.set($page.params.relay, $page.url.pathname)
}
})