mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-14 20:30:56 -05:00
9729befe59
Convert token access page to React GitOrigin-RevId: d7434f0de395c47a95d00767727fbe9d43f9abca
16 lines
440 B
JavaScript
16 lines
440 B
JavaScript
// window location-related functions in a separate module so they can be mocked/stubbed in tests
|
|
|
|
export const location = {
|
|
assign(url) {
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
window.location.assign(url)
|
|
},
|
|
replace(url) {
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
window.location.replace(url)
|
|
},
|
|
reload() {
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
window.location.reload()
|
|
},
|
|
}
|