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

Function isShareLink

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

Source from the content-addressed store, hash-verified

102 /^(?:[a-z0-9-]+\.)?(?:twitter\.com|x\.com|facebook\.com|linkedin\.com|reddit\.com|wa\.me|whatsapp\.com|t\.me|telegram\.me)$/;
103
104export const isShareLink = (anchor: HTMLAnchorElement): boolean =>
105 shareIntents.test(anchor.host);
106
107// A sheet, menu or dialog standing over the page. Each of them closes on
108// Escape: the drawers and Radix listen on the document, a modal on its

Callers 1

onClickFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected