Function
isShareLink
(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 | |
| 104 | export 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 |
Tested by
no test coverage detected