latex-ub/services/web/frontend/js/shared/components/history.ts
2025-05-05 12:24:05 +00:00

7 lines
245 B
TypeScript

// window.history-related functions in a separate module so they can be mocked/stubbed in tests
export const history = {
pushState(data: any, unused: string, url?: string | URL | null) {
window.history.pushState(data, unused, url)
},
}