MCPcopy Create free account
hub / github.com/dfinity/orbit / popRedirectToLocation

Function popRedirectToLocation

apps/wallet/src/utils/app.utils.ts:57–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55};
56
57export const popRedirectToLocation = (): string | null => {
58 const lastRequestedPage = window?.sessionStorage.getItem(redirectToKey);
59 if (lastRequestedPage) {
60 window?.sessionStorage.removeItem(redirectToKey);
61 }
62
63 return lastRequestedPage;
64};
65
66export const afterLoginRedirect = (): void => {
67 const lastRequestedPage = popRedirectToLocation();

Callers 2

connectToFunction · 0.90
afterLoginRedirectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected