MCPcopy Create free account
hub / github.com/atomicdata-dev/atomic-data-browser / handleAccept

Function handleAccept

data-browser/src/views/InvitePage.tsx:54–63  ·  view source on GitHub ↗
(publicKey?: string, agent?: string)

Source from the content-addressed store, hash-verified

52 }
53
54 function handleAccept(publicKey?: string, agent?: string) {
55 const inviteURL = new URL(resource.getSubject());
56
57 if (publicKey) {
58 inviteURL.searchParams.set('public-key', publicKey);
59 } else {
60 inviteURL.searchParams.set('agent', agent);
61 }
62 history.push(openURL(inviteURL.href));
63 }
64
65 return (
66 <ContainerNarrow about={resource.getSubject()}>

Callers 2

InvitePageFunction · 0.85
handleNewFunction · 0.85

Calls 3

openURLFunction · 0.90
getSubjectMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected