location.js 319 B

1234567891011
  1. // window location-related functions in a separate module so they can be mocked/stubbed in tests
  2. export function reload() {
  3. // eslint-disable-next-line no-restricted-syntax
  4. window.location.reload()
  5. }
  6. export function assign(url) {
  7. // eslint-disable-next-line no-restricted-syntax
  8. window.location.assign(url)
  9. }