Files
flotilla/src/app/util/history.ts
T
2025-10-17 12:21:22 -05:00

12 lines
271 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)
}
})
}