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

Function isOutsideLink

packages/shared/src/components/shell/readingStore.ts:99–100  ·  view source on GitHub ↗
(anchor: HTMLAnchorElement)

Source from the content-addressed store, hash-verified

97// A web link that leaves the app: not one of its own pages, not a sign-in
98// or share hand-off that belongs to the destination.
99export const isOutsideLink = (anchor: HTMLAnchorElement): boolean =>
100 /^https?:$/.test(anchor.protocol) && !appHosts().includes(anchor.host);
101
102// The post behind a redirect link (`api.daily.dev/r/<id>`): the redirect only
103// counts the read when it can tell who is reading.

Callers 2

onClickFunction · 0.90
onClickFunction · 0.90

Calls 1

appHostsFunction · 0.85

Tested by

no test coverage detected