history.ts 245 B

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