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

Function buildIconUrl

packages/shared/src/lib/links.ts:82–83  ·  view source on GitHub ↗
(url: string, size: number)

Source from the content-addressed store, hash-verified

80const MIN_SITE_ICON_SIZE = 96;
81
82const buildIconUrl = (url: string, size: number): string =>
83 `${apiUrl}/icon?url=${encodeURIComponent(url)}&size=${Math.round(size)}`;
84
85// A site's own icon — a company or technology's real logo — proxied and cached
86// by the API from the given domain or URL.

Callers 2

getSiteIconUrlFunction · 0.85
getShortcutIconUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected