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

Function getAbsoluteWebappUrl

packages/shared/src/lib/links.ts:168–173  ·  view source on GitHub ↗
(path = '')

Source from the content-addressed store, hash-verified

166// webapp, and the share pipeline runs `new URL(link)` on whatever it is handed.
167// An absolute `webappUrl` (the extension) passes through unchanged.
168export const getAbsoluteWebappUrl = (path = ''): string => {
169 const url = `${webappUrl}${path}`;
170 const origin = globalThis?.location?.origin;
171
172 return origin ? new URL(url, origin).toString() : url;
173};
174
175export const agentsHighlightsPath = '/highlights/vibes';
176

Callers 8

SharePicksModalFunction · 0.90
appHostsFunction · 0.90
CopyHighlightsLinkFunction · 0.90
onCopyFunction · 0.90
links.spec.tsFile · 0.90
useSourceMenuPropsFunction · 0.90
PluginShareActionsFunction · 0.90
ToolPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected