MCPcopy Create free account
hub / github.com/error311/FileRise / clearAuthFileLinkFromUrl

Function clearAuthFileLinkFromUrl

public/js/main.js:190–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188}
189
190function 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
205async function resolveAuthFileLinkIfPresent() {
206 let token = '';

Callers 1

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected