MCPcopy Create free account
hub / github.com/Forward-Future/loopy / readVoteSessionToken

Function readVoteSessionToken

loop-library/site/script.js:622–628  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

620function voteLoginUrl(provider) {
621 const returnTo = `${window.location.pathname}${window.location.search}${window.location.hash}`;
622 return `${LOOP_LIBRARY_PATH}/auth/${provider}?${new URLSearchParams({
623 return_to: returnTo,
624 })}`;
625}
626
627function readVoteSessionToken() {
628 try {
629 return window.sessionStorage.getItem(VOTE_SESSION_KEY) || "";
630 } catch {
631 return "";

Callers 2

loadVotesFunction · 0.85
script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected