Function
isShareLink
(anchor: HTMLAnchorElement)
Source from the content-addressed store, hash-verified
| 112 | /^(?:[a-z0-9-]+\.)?(?:twitter\.com|x\.com|facebook\.com|linkedin\.com|reddit\.com|wa\.me|whatsapp\.com|t\.me|telegram\.me)$/; |
| 113 | |
| 114 | export const isShareLink = (anchor: HTMLAnchorElement): boolean => |
| 115 | shareIntents.test(anchor.host); |
| 116 | |
| 117 | // A sheet, menu or dialog standing over the page. Each of them closes on |
| 118 | // Escape: the drawers and Radix listen on the document, a modal on its |
Tested by
no test coverage detected