()
| 188 | } |
| 189 | |
| 190 | function clearAuthFileLinkFromUrl() { |
| 191 | try { |
| 192 | const url = new URL(window.location.href); |
| 193 | if (!url.searchParams.has(AUTH_FILE_LINK_PARAM)) return; |
| 194 | url.searchParams.delete(AUTH_FILE_LINK_PARAM); |
| 195 | const next = |
| 196 | url.pathname + |
| 197 | (url.search ? url.search : '') + |
| 198 | (url.hash || ''); |
| 199 | window.history.replaceState(window.history.state || null, '', next); |
| 200 | } catch (e) { |
| 201 | // ignore |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | async function resolveAuthFileLinkIfPresent() { |
| 206 | let token = ''; |
no test coverage detected