(anchor: HTMLAnchorElement)
| 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. |
| 99 | export 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. |