MCPcopy Create free account
hub / github.com/dailydotdev/apps / getReferrerType

Function getReferrerType

packages/shared/src/lib/boot.ts:106–111  ·  view source on GitHub ↗
(pathname?: string)

Source from the content-addressed store, hash-verified

104 * Only returns known referrer identifiers for privacy
105 */
106const getReferrerType = (pathname?: string): string | undefined => {
107 if (pathname?.startsWith('/recruiter')) {
108 return 'recruiter';
109 }
110 return undefined;
111};
112
113const getBootURL = (app: string, url?: string, pathname?: string) => {
114 const appRoute = app === 'companion' ? '/companion' : '';

Callers 1

getBootURLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected