()
| 204 | }; |
| 205 | |
| 206 | export const refreshUrl = () => { |
| 207 | if (typeof window === 'undefined') { |
| 208 | return; |
| 209 | } |
| 210 | |
| 211 | const {origin, pathname} = window.location; |
| 212 | const urlWithoutToken = origin + pathname; |
| 213 | window.history.replaceState({}, document.title, urlWithoutToken); |
| 214 | }; |
| 215 | |
| 216 | export const loadingTextEffect = (loadingText, setLoadingText, timer) => { |
| 217 | const text = loadingText; |
no outgoing calls
no test coverage detected